From aff76bc71c1910128b04bb151817606a020ef575 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 30 Apr 2019 14:06:03 -0400 Subject: 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 --- tests/basic/uss.t | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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; -- cgit