diff options
Diffstat (limited to 'test/shell/lock-blocking.sh')
-rw-r--r-- | test/shell/lock-blocking.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/shell/lock-blocking.sh b/test/shell/lock-blocking.sh index e05fa5068..7c33067ec 100644 --- a/test/shell/lock-blocking.sh +++ b/test/shell/lock-blocking.sh @@ -20,7 +20,7 @@ vgcreate $vg "$dev1" "$dev2" # if wait_for_locks set, vgremove should wait for orphan lock # flock process should have exited by the time first vgremove completes -flock -w 5 $TESTDIR/var/lock/lvm/P_orphans -c "sleep 10" & +flock -w 5 $TESTDIR/var/lock/lvm/P_orphans sleep 10 & while ! test -f $TESTDIR/var/lock/lvm/P_orphans ; do sleep .1 ; done vgremove --config 'global { wait_for_locks = 1 }' $vg @@ -31,7 +31,7 @@ test ! -f $TESTDIR/var/lock/lvm/P_orphans # if wait_for_locks not set, vgremove should fail on non-blocking lock # we must wait for flock process at the end - vgremove won't wait vgcreate $vg "$dev1" "$dev2" -flock -w 5 $TESTDIR/var/lock/lvm/P_orphans -c "sleep 10" & +flock -w 5 $TESTDIR/var/lock/lvm/P_orphans sleep 10 & while ! test -f $TESTDIR/var/lock/lvm/P_orphans ; do sleep .1 ; done flock_pid=`jobs -p` |