From f1dd941986a8a8e31b76d9ae79841f1deede11ea Mon Sep 17 00:00:00 2001 From: Pranav Date: Wed, 10 Jun 2020 16:20:03 +0530 Subject: [Testfix] Fix teardown failure for test_deem_statfs_quotad.py Problem: As in setUpClass, the setup_volume method is used for volume creation, volume mount is not done. But in teardown, unmount_volume_and_cleanup_volume is used. This causes teardown to fail Fix: change unmount_volume_and_cleanup_volume to cleanup_volume Change-Id: Ia9bb6bcd36ce9ddb9c200ef18779df47a009d42f Signed-off-by: Pranav --- tests/functional/quota/test_deem_statfs_quotad.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/functional/quota/test_deem_statfs_quotad.py b/tests/functional/quota/test_deem_statfs_quotad.py index 8aecfc6e6..06e87f7e8 100644 --- a/tests/functional/quota/test_deem_statfs_quotad.py +++ b/tests/functional/quota/test_deem_statfs_quotad.py @@ -43,8 +43,8 @@ class QuotaDeemStatfsAndQuotad(GlusterBaseClass): def tearDown(self): # Unmount and cleanup original volume - g.log.info("Starting to Unmount Volume and Cleanup Volume") - ret = self.unmount_volume_and_cleanup_volume(mounts=self.mounts) + g.log.info("Starting to Cleanup Volume") + ret = self.cleanup_volume() if not ret: raise ExecutionError("Failed to umount the vol & cleanup Volume") g.log.info("Successful in umounting the volume and Cleanup") -- cgit