summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-05-04 10:16:33 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2015-05-04 10:16:33 +0200
commitc90ee0414d74ddbaabf270c306acd4fef76718b5 (patch)
treebe628bc0b9cb2e3d63cec35b23fa7b3214db716d
parent3f05e662bbb0a02315e3ef806543fd3e092f40f0 (diff)
downloadlvm2-c90ee0414d74ddbaabf270c306acd4fef76718b5.tar.gz
tests: check for clvmd process entry
Instead of checking just for pid file - rather check for process - since there could be slight race, the pid file is gone, but process still exists.
-rw-r--r--test/shell/pvmove-restart.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/shell/pvmove-restart.sh b/test/shell/pvmove-restart.sh
index db87d522c..e1408bff1 100644
--- a/test/shell/pvmove-restart.sh
+++ b/test/shell/pvmove-restart.sh
@@ -69,7 +69,7 @@ if test -e LOCAL_CLVMD ; then
kill $(< LOCAL_CLVMD)
for i in $(seq 1 100) ; do
test $i -eq 100 && die "Shutdown of clvmd is too slow."
- test -e "$CLVMD_PIDFILE" || break
+ pgrep clvmd || break
sleep .1
done # wait for the pid removal
aux prepare_clvmd