test: always start with a clean slate.
To avoid confusion with old array, also zero superblocks before starting a test. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
ffb3e4945d
commit
2ce7c39bfa
2
test
2
test
|
@ -180,6 +180,8 @@ do
|
||||||
rm -f $targetdir/stderr
|
rm -f $targetdir/stderr
|
||||||
# stop all arrays, just incase some script left an array active.
|
# stop all arrays, just incase some script left an array active.
|
||||||
mdadm -Ssq
|
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
|
# source script in a subshell, so it has access to our
|
||||||
# namespace, but cannot change it.
|
# namespace, but cannot change it.
|
||||||
if ( set -ex ; . $script ) 2> $targetdir/log
|
if ( set -ex ; . $script ) 2> $targetdir/log
|
||||||
|
|
Loading…
Reference in New Issue