[lvm-devel] master - tests: add short delay
Zdenek Kabelac
zkabelac at fedoraproject.org
Mon Feb 17 21:26:40 UTC 2014
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8eedb18c73f81de8682649afd21c996883c33e76
Commit: 8eedb18c73f81de8682649afd21c996883c33e76
Parent: 9974136b907962438079e4c634541f97d1f9fd61
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Sat Feb 15 13:02:41 2014 +0100
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Mon Feb 17 22:25:53 2014 +0100
tests: add short delay
Give some extra delay so the file will be opened.
---
test/shell/snapshot-usage.sh | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/test/shell/snapshot-usage.sh b/test/shell/snapshot-usage.sh
index 9e6a14f..14a87c0 100644
--- a/test/shell/snapshot-usage.sh
+++ b/test/shell/snapshot-usage.sh
@@ -55,6 +55,9 @@ trap 'cleanup_tail' EXIT
sleep 30 < $DM_DEV_DIR/$vg1/$lv1 &
SLEEP_PID=$!
+# give some short time to lock file above
+sleep 0.1
+
# Opened virtual snapshot device is not removable
# it should retry device removal for a few seconds
not lvremove -f $vg1/$lv1
More information about the lvm-devel
mailing list