path: root/tests/basic
diff options
authorRaghavendra Bhat <>2019-04-30 14:06:03 -0400
committerAmar Tumballi <>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 <>
Diffstat (limited to 'tests/basic')
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/basic/uss.t b/tests/basic/uss.t
index 47deef6..c855805 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
+TEST $CLI volume stop $V0
+TEST $CLI volume delete $V0