mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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:
parent
82d83a01ce
commit
732e609fe2
@ -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")))
|
||||
|
Loading…
Reference in New Issue
Block a user