From 908ef18519f7d5780ebf00b19b913f8282eb4175 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Sat, 12 Jul 2008 20:27:42 +1000 Subject: Stop all arrays before running each test in regression test driver. Sometimes I forget to stop arrays at the end of scripts, and that shows errors in the next script, which is confusing. --- test | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test b/test index a62d7e31..f83e28fc 100644 --- a/test +++ b/test @@ -171,6 +171,8 @@ do if [ -f "$script" ] then rm -f $targetdir/stderr + # stop all arrays, just incase some script left an array active. + mdadm -Ssq # source script in a subshell, so it has access to our # namespace, but cannot change it. if ( set -ex ; . $script ) 2> $targetdir/log -- cgit v1.2.3