From: Dmitry Monakhov Date: Thu, 13 Mar 2014 04:20:28 +0000 (+1100) Subject: generic/280: use waidpid instead of ugly sleep X-Git-Tag: v2022.05.01~3210 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=33e02a85370db97acc666523e508c315355a8721;p=xfstests-dev.git generic/280: use waidpid instead of ugly sleep Signed-off-by: Dmitry Monakhov Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/tests/generic/280 b/tests/generic/280 index 815a2c56..7a2d1d01 100755 --- a/tests/generic/280 +++ b/tests/generic/280 @@ -61,9 +61,10 @@ quotacheck -u -g $SCRATCH_MNT 2>/dev/null quotaon $SCRATCH_MNT 2>/dev/null xfs_freeze -f $SCRATCH_MNT setquota -u root 1 2 3 4 $SCRATCH_MNT & +pid=$! sleep 1 xfs_freeze -u $SCRATCH_MNT -sleep 1 +wait $pid umount $SCRATCH_DEV # Failure comes in the form of a deadlock.