summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/bug-1164613.t13
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