From 2f615e73de8aad74da77e69d57d012e5a1006389 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 8 Nov 2019 15:09:17 +0100 Subject: [PATCH] tests: add extra settle To avoid removing, while 'add' might not have been processed yet. (when emulating reboot in pvmove-restart) --- test/lib/aux.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 804200d9e..224106213 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -1678,6 +1678,10 @@ wait_pvmove_lv_ready() { retries=$((retries-1)) done fi + + # Adding settle here, to avoid remove, before processing of 'add' is finished + # (masking systemd-udevd issue) + udevadm settle --timeout=2 || true } # Holds device open with sleep which automatically expires after given timeout