Skip to contentSkip to conversation

stable-2.02 - tests: add extra settle

PATCH Zdenek Kabelac 1 participant 1 message Nov 8, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2f615e73de8aad74da77e69d57d012e5a1006389
Commit:        2f615e73de8aad74da77e69d57d012e5a1006389
Parent:        0e3e974bffa4e9842127451072eab1646ac39a1a
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Nov 8 15:09:17 2019 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Nov 8 15:12:51 2019 +0100

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 files changed, 4 insertions(+), 0 deletions(-)
test/lib/aux.sh +4 -0
index 804200d..2241062 100644
@@ -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