From bbc164991afc5d28bcf12bd4709c4137c913e412 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 23 Sep 2020 22:09:37 +0200 Subject: [PATCH] tests: add small delay Prevent there is no i.e. udev trying to open our device. --- test/shell/snapshot-remove-dmsetup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/shell/snapshot-remove-dmsetup.sh b/test/shell/snapshot-remove-dmsetup.sh index 19411ce93..2ef65a596 100644 --- a/test/shell/snapshot-remove-dmsetup.sh +++ b/test/shell/snapshot-remove-dmsetup.sh @@ -59,7 +59,9 @@ dmsetup resume $vg1-snap wait $DMPID -# Try how force removal works +# Try how force removal works (and wait till there is no user) +sync +sleep .5 dmsetup suspend $vg-$lv1 # needs to fail as device is still open not dmsetup remove --force $vg1-snap & -- 2.43.5