diff options
author | vmallika <vmallika@redhat.com> | 2014-11-18 17:23:06 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-11-20 03:08:29 -0800 |
commit | 27c2be4af6f2dc0a18410e17862bb5d3a07231f3 (patch) | |
tree | 760d545229dc24209ab5d72a669440e429fb4e1c | |
parent | 720e2c0df7bbf2d3daed20cadd5f3f710576a05c (diff) |
tests: spurious failure fix for bug-1164613.t
Snapshot bricks are started asynchronously.
It might take sometime before accessing the file.
Change-Id: I62633974eca21f86632f7005ce6fd5c856b8be90
BUG: 1163543
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/9142
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r-- | tests/bugs/bug-1164613.t | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/bugs/bug-1164613.t b/tests/bugs/bug-1164613.t index 16b94a54632..1942dcbc628 100644 --- a/tests/bugs/bug-1164613.t +++ b/tests/bugs/bug-1164613.t @@ -3,6 +3,11 @@ . $(dirname $0)/../include.rc . $(dirname $0)/../snapshot.rc +function stat_testfile() { + stat $M0/snaps/snaps/testfile + echo $? +} + cleanup; TEST verify_lvm_version; TEST glusterd; @@ -16,14 +21,12 @@ TEST glusterfs -s $H0 --volfile-id=$V0 $M0 TEST touch $M0/testfile -TEST $CLI snapshot config activate-on-create enable +TEST $CLI snapshot create snaps $V0 +TEST $CLI snapshot activate snaps TEST $CLI volume set $V0 features.uss enable TEST $CLI volume set $V0 snapshot-directory snaps -TEST $CLI snapshot create snaps $V0 - - -TEST ls $M0/snaps/snaps/testfile +EXPECT_WITHIN 20 "0" stat_testfile umount -f $M0 |