1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00

tests: correct test condition

Abort loop when PIDFILE is gone
This commit is contained in:
Zdenek Kabelac 2014-04-14 14:55:14 +02:00
parent 92ee51a4c3
commit 3c82a37aee

View File

@ -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