From 49a4f924cdb33c5b1a58e1a8bb1deac6fb2bc885 Mon Sep 17 00:00:00 2001 From: Brian Foster Date: Thu, 15 May 2014 11:37:49 +1000 Subject: [PATCH] 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 --- tests/xfs/013 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.*