mirror of
git://sourceware.org/git/lvm2.git
synced 2025-09-14 09:44:18 +03:00
tests: add short delay
Give some extra delay so the file will be opened.
This commit is contained in:
@@ -55,6 +55,9 @@ trap 'cleanup_tail' EXIT
|
|||||||
sleep 30 < $DM_DEV_DIR/$vg1/$lv1 &
|
sleep 30 < $DM_DEV_DIR/$vg1/$lv1 &
|
||||||
SLEEP_PID=$!
|
SLEEP_PID=$!
|
||||||
|
|
||||||
|
# give some short time to lock file above
|
||||||
|
sleep 0.1
|
||||||
|
|
||||||
# Opened virtual snapshot device is not removable
|
# Opened virtual snapshot device is not removable
|
||||||
# it should retry device removal for a few seconds
|
# it should retry device removal for a few seconds
|
||||||
not lvremove -f $vg1/$lv1
|
not lvremove -f $vg1/$lv1
|
||||||
|
Reference in New Issue
Block a user