From: Zdenek Kabelac Date: Fri, 8 Nov 2019 14:09:17 +0000 (+0100) Subject: tests: add extra settle X-Git-Tag: v2_03_07~61 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=3b05fd4d072d94bfead8c2d188ecf704fe57e2a8;p=lvm2.git tests: add extra settle To avoid removing, while 'add' might not have been processed yet. (when emulating reboot in pvmove-restart) --- diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 36e1c2bb3..6822d7e3e 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -1652,6 +1652,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