From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - tests: udev-pvscan-vgchange fix wait
Date: Thu, 11 Nov 2021 22:59:20 +0000 (GMT) [thread overview]
Message-ID: <20211111225920.75509385840E@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=20c550ab10e50d25249ed0b0553ff8a33ed3348f
Commit: 20c550ab10e50d25249ed0b0553ff8a33ed3348f
Parent: 0e0faf30e01f78828b7e240f57217755b62650bb
Author: David Teigland <teigland@redhat.com>
AuthorDate: Thu Nov 11 16:04:24 2021 -0600
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Thu Nov 11 16:04:24 2021 -0600
tests: udev-pvscan-vgchange fix wait
the service now remains after completion
---
test/shell/udev-pvscan-vgchange.sh | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/test/shell/udev-pvscan-vgchange.sh b/test/shell/udev-pvscan-vgchange.sh
index f0d637562..fcd8e961b 100644
--- a/test/shell/udev-pvscan-vgchange.sh
+++ b/test/shell/udev-pvscan-vgchange.sh
@@ -71,15 +71,11 @@ wipe_all() {
done
}
-# udevadm trigger runs udev rule which runs systemd-run --no-wait vgchange -aay
-# Because of --no-wait, we need to wait for the transient systemd
-# service to be gone before checking the effects of the vgchange.
-
wait_lvm_activate() {
local vgw=$1
local wait=0
- while systemctl status lvm-activate-$vgw > /dev/null && test "$wait" -le 30; do
+ while systemctl status lvm-activate-$vgw | grep "active (running)" && test "$wait" -le 30; do
sleep .2
wait=$(( wait + 1 ))
done
reply other threads:[~2021-11-11 22:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211111225920.75509385840E@sourceware.org \
--to=teigland@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.