From: Brian Foster Date: Thu, 15 May 2014 01:37:49 +0000 (+1000) Subject: xfs/013: use killall -9 and wait in _cleanup() X-Git-Tag: v2022.05.01~3131 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=49a4f924cdb33c5b1a58e1a8bb1deac6fb2bc885 xfs/013: use killall -9 and wait in _cleanup() Kill any lingering fsstress processes and wait properly should we abort the test. This prevents the workload from inadvertently affecting subsequent tests. Signed-off-by: Brian Foster Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/tests/xfs/013 b/tests/xfs/013 index 049f0dcb..e95d0271 100755 --- a/tests/xfs/013 +++ b/tests/xfs/013 @@ -40,7 +40,8 @@ status=1 # failure is the default! _cleanup() { - killall fsstress 2>/dev/null + killall -9 fsstress 2>/dev/null + wait cd / umount $SCRATCH_MNT 2>/dev/null rm -f $tmp.*