mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
tests: mdadm stop in test cleanup
try to clear any existing md devs remaining after a test
This commit is contained in:
parent
9680fd6d78
commit
fd5b8b72da
@ -421,9 +421,14 @@ teardown_devs() {
|
||||
teardown_udev_cookies
|
||||
|
||||
test ! -f MD_DEV || cleanup_md_dev
|
||||
udev_wait
|
||||
mdadm --stop --scan || true
|
||||
udev_wait
|
||||
test ! -f DEVICES || teardown_devs_prefixed "$PREFIX"
|
||||
test ! -f RAMDISK || { modprobe -r brd || true ; }
|
||||
|
||||
mdadm --stop --scan || true
|
||||
|
||||
# NOTE: SCSI_DEBUG_DEV test must come before the LOOP test because
|
||||
# prepare_scsi_debug_dev() also sets LOOP to short-circuit prepare_loop()
|
||||
if test -f SCSI_DEBUG_DEV; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user