Skip to contentSkip to conversation

master - test: Fix false positives due to open devices

PATCH Marian Csontos 1 participant 1 message Aug 14, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=732e609fe2e337fa7f4c2b3308d0bc6187269947
Commit:        732e609fe2e337fa7f4c2b3308d0bc6187269947
Parent:        82d83a01ce2cac77fec2e9b763061fbfb5f01ce8
Author:        Marian Csontos <[email protected]>
AuthorDate:    Wed Aug 14 15:57:52 2013 +0200
Committer:     Marian Csontos <[email protected]>
CommitterDate: Wed Aug 14 16:04:01 2013 +0200

test: Fix false positives due to open devices

Something is rather randomly keeping devices open. As it is a known udev feature, waiting for transaction may (or may not) help.

---
 test/lib/aux.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
test/lib/aux.sh +1 -0
index d61f17d..36de6e5 100644
@@ -345,6 +345,7 @@ prepare_devs() {
 disable_dev() {
 	local dev
 
+	udev_wait
 	init_udev_transaction
 	for dev in "$@"; do
 		maj=$(($(stat --printf=0x%t "$dev")))