mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
test: cleanup after the MD + LVM test case as well
This commit is contained in:
parent
354ca98085
commit
6d49e0945f
|
@ -666,12 +666,17 @@ testcase_mdadm_lvm() {
|
|||
# Disassemble the array
|
||||
lvm vgchange -an "$vgroup"
|
||||
mdadm -v --stop "$raid_dev"
|
||||
udevadm settle
|
||||
udevadm wait --settle --timeout=30 --removed "${expected_symlinks[@]}"
|
||||
helper_check_device_symlinks
|
||||
# Reassemble it and check if all required symlinks exist
|
||||
mdadm --assemble "$raid_dev" --name "$raid_name" -v
|
||||
udevadm wait --settle --timeout=30 "${expected_symlinks[@]}"
|
||||
helper_check_device_symlinks
|
||||
# Cleanup
|
||||
lvm vgchange -an "$vgroup"
|
||||
mdadm -v --stop "$raid_dev"
|
||||
# Check if all expected symlinks were removed after the cleanup
|
||||
udevadm wait --settle --timeout=30 --removed "${expected_symlinks[@]}"
|
||||
}
|
||||
|
||||
: >/failed
|
||||
|
|
Loading…
Reference in a new issue