From: NeilBrown Date: Mon, 6 Jul 2015 03:48:59 +0000 (+1000) Subject: test: stop all arrays before starting test. X-Git-Tag: mdadm-3.3.3~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c351af129a6ce7f8ef431709bc91bfffb43073e;p=thirdparty%2Fmdadm.git test: stop all arrays before starting test. As well a cleaning up loop devices, stop all arrays. After all, we cannot do the one without the other. Signed-off-by: NeilBrown --- diff --git a/test b/test index 9610b657..ef5ad8eb 100755 --- 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