1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +03:00

tests: add extra settle

To avoid removing, while 'add' might not have been processed yet.
(when emulating reboot in pvmove-restart)
This commit is contained in:
Zdenek Kabelac 2019-11-08 15:09:17 +01:00
parent 0e3e974bff
commit 2f615e73de

View File

@ -1678,6 +1678,10 @@ wait_pvmove_lv_ready() {
retries=$((retries-1)) retries=$((retries-1))
done done
fi 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 # Holds device open with sleep which automatically expires after given timeout