From 14d5a31190753af773b28636e5b9ef135824b8ac Mon Sep 17 00:00:00 2001 From: Karolina Rogowska Date: Fri, 11 Dec 2020 17:41:02 +0100 Subject: [PATCH] waiting for mdadm to complete event (--zero-superblock command) before removing partition Signed-off-by: Karolina Rogowska --- test/functional/tests/conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/tests/conftest.py b/test/functional/tests/conftest.py index 58b24c7..593c1c1 100644 --- a/test/functional/tests/conftest.py +++ b/test/functional/tests/conftest.py @@ -197,6 +197,7 @@ def base_prepare(item): for disk in TestRun.dut.disks: disk.umount_all_partitions() Mdadm.zero_superblock(disk.system_path) + TestRun.executor.run_expect_success("udevadm settle") disk.remove_partitions() create_partition_table(disk, PartitionTable.gpt)