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 <neilb@suse.com>
This commit is contained in:
NeilBrown 2015-07-06 13:48:59 +10:00
parent 62844a4da6
commit 5c351af129
1 changed files with 1 additions and 0 deletions

1
test
View File

@ -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