summaryrefslogtreecommitdiffstats
path: root/tests/basic
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2019-04-30 14:06:03 -0400
committerAmar Tumballi <amarts@redhat.com>2019-05-06 13:57:58 +0000
commitaff76bc71c1910128b04bb151817606a020ef575 (patch)
tree22d77cb254c56b47f4eab240e2cbf18b37e1baaa /tests/basic
parentdb9c31fcf57024abfdc7b35825409166f17d5aac (diff)
tests: delete the snapshots and the volume after the tests
In uss.t multiple snapshots are taken and after all the tests things are left for the cleanup () function to get removed. Instead of that, delete the snapshots and the volume once all the tests are over so that cleanup operation becomes relatively a light operation. Change-Id: I2342740bbb185cd6c9a450eb3b4f5cbbba78974c fixes: bz#1704888 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'tests/basic')
-rw-r--r--tests/basic/uss.t22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/basic/uss.t b/tests/basic/uss.t
index 47deef66e24..c8558050e36 100644
--- a/tests/basic/uss.t
+++ b/tests/basic/uss.t
@@ -384,4 +384,26 @@ TEST ls $M0/.history/snap6/;
TEST ! stat $M0/.history/snap6/aaa;
+# done with the tests start cleaning up of things
+TEST $CLI volume set $V0 features.uss disable
+
+TEST $CLI snapshot delete snap6;
+
+TEST $CLI snapshot delete snap5;
+
+TEST $CLI snapshot delete snap4;
+
+TEST $CLI snapshot delete snap3;
+
+TEST $CLI snapshot delete snap2;
+
+TEST $CLI snapshot delete snap1;
+
+# nfs client has been already unmounted at line 333
+EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0
+
+TEST $CLI volume stop $V0
+
+TEST $CLI volume delete $V0
+
cleanup;