]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
test: stop all arrays before starting test.
authorNeilBrown <neilb@suse.de>
Mon, 6 Jul 2015 03:48:59 +0000 (13:48 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 6 Jul 2015 03:48:59 +0000 (13:48 +1000)
As well a cleaning up loop devices, stop all arrays.
After all, we cannot do the one without the other.

Signed-off-by: NeilBrown <neilb@suse.com>
test

diff --git a/test b/test
index 9610b6574ef7f8f45612b4320f3f20bc96fec113..ef5ad8ebd24a3beb4e2126a12e20b0c4e2905960 100755 (executable)
--- a/test
+++ b/test
@@ -99,6 +99,7 @@ do_setup() {
   # immediately
   while grep loop /proc/partitions > /dev/null 2>&1
   do
+    mdadm -Ss
     losetup -d /dev/loop[0-9]* 2> /dev/null
     sleep 1
   done