Skip to content

Commit

Permalink
Remove redundant unmount
Browse files Browse the repository at this point in the history
remove_partitions() includes unmounting them

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
  • Loading branch information
Deixx committed Oct 4, 2024
1 parent c266207 commit 0999e60
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/functional/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ def base_prepare(item):
disk_path in device.get_device_id(),
[bd.get_device_id() for bd in TestRun.dut.disks])),
raid.array_devices)):
raid.umount_all_partitions()
raid.remove_partitions()
raid.unmount()
raid.stop()
Expand All @@ -278,8 +277,6 @@ def base_prepare(item):
f"Serial for {disk.path} doesn't match the one from the config."
f"Serial from config {disk.serial_number}, actual serial {disk_serial}"
)

disk.umount_all_partitions()
disk.remove_partitions()
disk.unmount()
Mdadm.zero_superblock(posixpath.join('/dev', disk.get_device_id()))
Expand Down

0 comments on commit 0999e60

Please sign in to comment.