From: Zdenek Kabelac Date: Thu, 4 Jul 2019 14:58:27 +0000 (+0200) Subject: tests: add settle wait before issue remove X-Git-Tag: v2_03_06~180 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=1e553159d5147c601ae4b524198461309016b496;p=lvm2.git tests: add settle wait before issue remove Some older BB with older cryptsetup tool do not 'retry' on remove and when remove is issued right after 'fsck' - it might be rejected with: Device @PREFIX@-tcrypt2 is busy. Try to use udevadm settle. --- diff --git a/test/shell/fsadm-crypt.sh b/test/shell/fsadm-crypt.sh index 9377e8942..4b8fc4e2d 100644 --- a/test/shell/fsadm-crypt.sh +++ b/test/shell/fsadm-crypt.sh @@ -83,6 +83,7 @@ export LVM_BINARY test ! -d "$mount_dir" && mkdir "$mount_dir" crypt_close() { + aux udev_wait cryptsetup remove "$1" if [ "$?" -eq 0 -a -n "$DROP_SYMLINK" ]; then rm -f "$DM_DEV_DIR/mapper/$1"