From: Zdenek Kabelac Date: Fri, 15 May 2020 14:56:40 +0000 (+0200) Subject: tests: add wait on udev processing X-Git-Tag: v2_03_10~69 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=d3b515cea54bae28c438eeef77cd3625d9b2a00c;p=lvm2.git tests: add wait on udev processing Trying to avoid collision with udev watch rule preventing to succeed 'dmsetup remove' becuase it keeps device open. --- 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