mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: correct test condition
Abort loop when PIDFILE is gone
This commit is contained in:
parent
92ee51a4c3
commit
3c82a37aee
@ -53,7 +53,7 @@ if test -e LOCAL_CLVMD ; then
|
||||
kill $(cat 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
|
||||
test -e "$CLVMD_PIDFILE" || break
|
||||
sleep .1
|
||||
done # wait for the pid removal
|
||||
aux prepare_clvmd
|
||||
|
Loading…
Reference in New Issue
Block a user