]> sourceware.org Git - lvm2.git/commitdiff
tests: add extra settle
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 8 Nov 2019 14:09:17 +0000 (15:09 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 11 Nov 2019 21:44:25 +0000 (22:44 +0100)
To avoid removing, while 'add' might not have been processed yet.
(when emulating reboot in pvmove-restart)

test/lib/aux.sh

index 36e1c2bb3e20073bdb7a449a321bcdff257a44f4..6822d7e3e49d6403ef3ab995015c6d213b20e0d4 100644 (file)
@@ -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
This page took 1.400355 seconds and 5 git commands to generate.