summaryrefslogtreecommitdiffstats
path: root/tests/basic/changelog
diff options
context:
space:
mode:
authorAmar Tumballi <amar@kadalu.io>2020-08-18 14:08:20 +0530
committerRinku Kothiya <rkothiya@redhat.com>2020-09-14 19:41:21 +0000
commit473453c4e2b1b6fc94edbce438dd9a3c0ea58c67 (patch)
treee9d335860880dea0da1ae62d5f312f8c7c90d240 /tests/basic/changelog
parent635dcf82505efcdeaf01c4e0450a157b533099ba (diff)
tests: provide an option to mark tests as 'flaky'
* also add some time gap in other tests to see if we get things properly * create a directory 'tests/000/', which can host any tests, which are flaky. * move all the tests mentioned in the issue to above directory. * as the above dir gets tested first, all flaky tests would be reported quickly. * change `run-tests.sh` to continue tests even if flaky tests fail. Reference: gluster/project-infrastructure#72 Updates: #1000 Change-Id: Ifdafa38d083ebd80f7ae3cbbc9aa3b68b6d21d0e Signed-off-by: Amar Tumballi <amar@kadalu.io> (cherry picked from 097db13c11390174c5b9f11aa0fd87eca1735871)
Diffstat (limited to 'tests/basic/changelog')
-rw-r--r--tests/basic/changelog/changelog-snapshot.t60
1 files changed, 0 insertions, 60 deletions
diff --git a/tests/basic/changelog/changelog-snapshot.t b/tests/basic/changelog/changelog-snapshot.t
deleted file mode 100644
index 7742db48cdd..00000000000
--- a/tests/basic/changelog/changelog-snapshot.t
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/bash
-
-. $(dirname $0)/../../include.rc
-. $(dirname $0)/../../snapshot.rc
-
-cleanup;
-ROLLOVER_TIME=3
-
-TEST verify_lvm_version;
-TEST glusterd;
-TEST pidof glusterd;
-
-TEST setup_lvm 1
-
-TEST $CLI volume create $V0 $H0:$L1
-BRICK_LOG=$(echo "$L1" | tr / - | sed 's/^-//g')
-TEST $CLI volume start $V0
-
-#Enable changelog
-TEST $CLI volume set $V0 changelog.changelog on
-TEST $CLI volume set $V0 changelog.rollover-time $ROLLOVER_TIME
-TEST $GFS --volfile-id=$V0 --volfile-server=$H0 $M0;
-
-#Create snapshot
-S1="${V0}-snap1"
-
-mkdir $M0/RENAME
-mkdir $M0/LINK
-mkdir $M0/UNLINK
-mkdir $M0/RMDIR
-mkdir $M0/SYMLINK
-
-for i in {1..400} ; do touch $M0/RENAME/file$i; done
-for i in {1..400} ; do touch $M0/LINK/file$i; done
-for i in {1..400} ; do touch $M0/UNLINK/file$i; done
-for i in {1..400} ; do mkdir $M0/RMDIR/dir$i; done
-for i in {1..400} ; do touch $M0/SYMLINK/file$i; done
-
-#Write I/O in background
-for i in {1..400} ; do touch $M0/file$i 2>/dev/null; done &
-for i in {1..400} ; do mknod $M0/mknod-file$i p 2>/dev/null; done &
-for i in {1..400} ; do mkdir $M0/dir$i 2>/dev/null; done & 2>/dev/null
-for i in {1..400} ; do mv $M0/RENAME/file$i $M0/RENAME/rn-file$i 2>/dev/null; done &
-for i in {1..400} ; do ln $M0/LINK/file$i $M0/LINK/ln-file$i 2>/dev/null; done &
-for i in {1..400} ; do rm -f $M0/UNLINK/file$i 2>/dev/null; done &
-for i in {1..400} ; do rmdir $M0/RMDIR/dir$i 2>/dev/null; done &
-for i in {1..400} ; do ln -s $M0/SYMLINK/file$i $M0/SYMLINK/sym-file$i 2>/dev/null; done &
-
-sleep 1
-TEST $CLI snapshot create $S1 $V0 no-timestamp
-TEST snapshot_exists 0 $S1
-
-TEST grep '"Enabled changelog barrier"' /var/log/glusterfs/bricks/$BRICK_LOG.log
-TEST grep '"Disabled changelog barrier"' /var/log/glusterfs/bricks/$BRICK_LOG.log
-
-TEST glusterfs -s $H0 --volfile-id=/snaps/$S1/$V0 $M1
-
-#Clean up
-TEST $CLI volume stop $V0 force
-cleanup;