summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-07-12 20:27:42 +1000
committerNeil Brown <neilb@suse.de>2008-07-12 20:27:42 +1000
commit908ef18519f7d5780ebf00b19b913f8282eb4175 (patch)
tree8247b6a19e33cd0a20f5c35bb3745b5ccd903cce /test
parent3576e302fe16ee7c5c553385e5b439432e6461e4 (diff)
downloadmdadm-908ef18519f7d5780ebf00b19b913f8282eb4175.tar.gz
mdadm-908ef18519f7d5780ebf00b19b913f8282eb4175.tar.xz
mdadm-908ef18519f7d5780ebf00b19b913f8282eb4175.zip
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.
Diffstat (limited to 'test')
-rw-r--r--test2
1 files changed, 2 insertions, 0 deletions
diff --git a/test b/test
index a62d7e3..f83e28f 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