]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - test
Merge branch 'master' into from-stable
[thirdparty/mdadm.git] / test
diff --git a/test b/test
index 1a79bab42295102a8731d854d75e3997b32f1bf1..bd8d279360d6a83aa910ab7f9276a0a66bb39931 100644 (file)
--- a/test
+++ b/test
@@ -174,6 +174,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