Skip to contentSkip to conversation

master - tests: workaround udevd compromising tests

PATCH Zdenek Kabelac 1 participant 1 message Oct 17, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=66f4698a93c6cc7d0fb027c5e4209b1de6a880ef
Commit:        66f4698a93c6cc7d0fb027c5e4209b1de6a880ef
Parent:        93a07a1b841628bb4c8caaa7f0470fc77f656ff2
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Oct 17 16:19:06 2013 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Oct 17 16:19:06 2013 +0200

tests: workaround udevd compromising tests

Patch helps a bit when lvm2 is build with disabled udev_sync support, but udevd runs in the system - so it randomly influences unrelated tests even - so before every test wait at least till udevd is settled.

---
 test/lib/utils.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
test/lib/utils.sh +2 -0
index 0f58b25..8311c4c 100644
@@ -214,3 +214,5 @@ case "$PATH" in
 esac
 
 test -z "$PREFIX" || prepare_test_vars
+
+test -e /sbin/udevsettle && pidof udevd >/dev/null && /sbin/udevsettle