]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Stop all arrays before running each test in regression test driver.
authorNeil Brown <neilb@suse.de>
Sat, 12 Jul 2008 10:27:42 +0000 (20:27 +1000)
committerNeil Brown <neilb@suse.de>
Sat, 12 Jul 2008 10:27:42 +0000 (20:27 +1000)
Sometimes I forget to stop arrays at the end of scripts, and
that shows errors in the next script, which is confusing.

test

diff --git a/test b/test
index a62d7e319f7343dc4c9d89006c738c893c49ce2c..f83e28fcb9d846659009604744f9759b9b907859 100644 (file)
--- 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