From: Zdenek Kabelac Date: Fri, 14 Jul 2017 18:23:02 +0000 (+0200) Subject: tests: add udev_wait before tearing scsi_debug X-Git-Tag: v2_02_173~40 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=2154f30a996967fa192b33997704d47038b5f077;p=lvm2.git tests: add udev_wait before tearing scsi_debug Make less probably there will be some udev work going while we try to remove scsi_debug target. --- diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 9a4868958..b7a9ad6aa 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -462,6 +462,7 @@ teardown_devs() { # NOTE: SCSI_DEBUG_DEV test must come before the LOOP test because # prepare_scsi_debug_dev() also sets LOOP to short-circuit prepare_loop() if test -f SCSI_DEBUG_DEV; then + udev_wait test "${LVM_TEST_PARALLEL:-0}" -eq 1 || modprobe -r scsi_debug else test ! -f LOOP || losetup -d "$(< LOOP)" || true