* master - tests: add wait on udev processing
@ 2020-05-20 14:03 Zdenek Kabelac
0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2020-05-20 14:03 UTC (permalink / raw)
To: lvm-devel
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d3b515cea54bae28c438eeef77cd3625d9b2a00c
Commit: d3b515cea54bae28c438eeef77cd3625d9b2a00c
Parent: deb51601818ec9d2f9a29205896125c82cf6ce00
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Fri May 15 16:56:40 2020 +0200
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Wed May 20 16:01:20 2020 +0200
tests: add wait on udev processing
Trying to avoid collision with udev watch rule preventing to
succeed 'dmsetup remove' becuase it keeps device open.
---
test/shell/thin-foreign-repair.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/shell/thin-foreign-repair.sh b/test/shell/thin-foreign-repair.sh
index 147a9a073..8b4018e4e 100644
--- a/test/shell/thin-foreign-repair.sh
+++ b/test/shell/thin-foreign-repair.sh
@@ -56,7 +56,9 @@ dmsetup create "$THIN" --table "0 40960 thin $DM_DEV_DIR/mapper/$POOL 0"
mkfs.ext4 "$DM_DEV_DIR/mapper/$THIN"
-dmsetup remove "$THIN"
+aux udev_wait
+
+dmsetup remove "$THIN" || { sleep .5 ; dmsetup remove "$THIN" }
lvchange -an $vg/pool
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-20 14:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-20 14:03 master - tests: add wait on udev processing Zdenek Kabelac
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.