1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

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.
This commit is contained in:
Marian Csontos 2013-08-14 15:57:52 +02:00
parent 82d83a01ce
commit 732e609fe2

View File

@ -345,6 +345,7 @@ prepare_devs() {
disable_dev() { disable_dev() {
local dev local dev
udev_wait
init_udev_transaction init_udev_transaction
for dev in "$@"; do for dev in "$@"; do
maj=$(($(stat --printf=0x%t "$dev"))) maj=$(($(stat --printf=0x%t "$dev")))