Remove redundant unmount

remove_partitions() includes unmounting them

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
This commit is contained in:
Daniel Madej 2024-10-04 08:58:35 +02:00
parent c2662072a4
commit 0999e601b8

View File

@ -262,7 +262,6 @@ def base_prepare(item):
disk_path in device.get_device_id(), disk_path in device.get_device_id(),
[bd.get_device_id() for bd in TestRun.dut.disks])), [bd.get_device_id() for bd in TestRun.dut.disks])),
raid.array_devices)): raid.array_devices)):
raid.umount_all_partitions()
raid.remove_partitions() raid.remove_partitions()
raid.unmount() raid.unmount()
raid.stop() raid.stop()
@ -278,8 +277,6 @@ def base_prepare(item):
f"Serial for {disk.path} doesn't match the one from the config." f"Serial for {disk.path} doesn't match the one from the config."
f"Serial from config {disk.serial_number}, actual serial {disk_serial}" f"Serial from config {disk.serial_number}, actual serial {disk_serial}"
) )
disk.umount_all_partitions()
disk.remove_partitions() disk.remove_partitions()
disk.unmount() disk.unmount()
Mdadm.zero_superblock(posixpath.join('/dev', disk.get_device_id())) Mdadm.zero_superblock(posixpath.join('/dev', disk.get_device_id()))