From: NeilBrown Date: Tue, 4 Nov 2008 10:06:00 +0000 (+1100) Subject: test: always start with a clean slate. X-Git-Tag: mdadm-3.0-devel2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ce7c39bfad832ea20804ba04ca86ddff71b1d00;p=thirdparty%2Fmdadm.git test: always start with a clean slate. To avoid confusion with old array, also zero superblocks before starting a test. Signed-off-by: NeilBrown --- diff --git a/test b/test index 22f142fa..f1555f7d 100644 --- a/test +++ b/test @@ -180,6 +180,8 @@ do rm -f $targetdir/stderr # stop all arrays, just incase some script left an array active. mdadm -Ssq + mdadm --zero $devlist 2> /dev/null + mdadm --zero $devlist 2> /dev/null # source script in a subshell, so it has access to our # namespace, but cannot change it. if ( set -ex ; . $script ) 2> $targetdir/log