From: Neil Brown Date: Sat, 12 Jul 2008 10:27:42 +0000 (+1000) Subject: Stop all arrays before running each test in regression test driver. X-Git-Tag: mdadm-3.0-devel1~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=908ef18519f7d5780ebf00b19b913f8282eb4175;p=thirdparty%2Fmdadm.git 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. --- 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