master - tests: correct test condition
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=3c82a37aee6ff266145bd2dd865763adf4f7187a Commit: 3c82a37aee6ff266145bd2dd865763adf4f7187a Parent: 92ee51a4c367848fc17ab79848bf5ab7fb1de678 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Apr 14 14:55:14 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Apr 14 14:55:14 2014 +0200
tests: correct test condition
Abort loop when PIDFILE is gone
--- test/shell/pvmove-restart.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
test/shell/pvmove-restart.sh +1 -1
@@ -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