Skip to contentSkip to conversation

master - tests: wait for udev

PATCH Zdenek Kabelac 1 participant 1 message Jun 17, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=6fb19f37fe6419fd2c22c04ffd71e0ac4a0bca36
Commit:        6fb19f37fe6419fd2c22c04ffd71e0ac4a0bca36
Parent:        0558b1a0869f9a68d78e80140500874756c70e4d
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Jun 16 13:37:22 2014 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Jun 17 13:43:04 2014 +0200

tests: wait for udev

Before test exits, wait for udev.

---
 test/lib/aux.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
test/lib/aux.sh +3 -0
index f6f0d0b..76b93ef 100644
@@ -200,6 +200,9 @@ teardown_devs() {
 			for i in "${stray_loops[@]}" ; do losetup -d $i ; done
 		}
 	}
+
+	# Leave test when udev processed all removed devices
+	udev_wait
 }
 
 kill_sleep_kill_() {