diff options
Diffstat (limited to 'tests/functional/quota/test_deem_statfs_quotad.py')
-rw-r--r-- | tests/functional/quota/test_deem_statfs_quotad.py | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/tests/functional/quota/test_deem_statfs_quotad.py b/tests/functional/quota/test_deem_statfs_quotad.py index 7773d4d36..06e87f7e8 100644 --- a/tests/functional/quota/test_deem_statfs_quotad.py +++ b/tests/functional/quota/test_deem_statfs_quotad.py @@ -1,4 +1,4 @@ -# Copyright (C) 2015-2018 Red Hat, Inc. <http://www.redhat.com> +# Copyright (C) 2015-2020 Red Hat, Inc. <http://www.redhat.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -40,20 +40,17 @@ class QuotaDeemStatfsAndQuotad(GlusterBaseClass): raise ExecutionError("Failed to Setup_Volume") g.log.info("Successful in Setup Volume") - @classmethod - def tearDownClass(cls): - """ - Clean up the volume - """ - # stopping the volume and clean up the volume + def tearDown(self): + + # Unmount and cleanup original volume g.log.info("Starting to Cleanup Volume") - ret = cls.cleanup_volume() + ret = self.cleanup_volume() if not ret: - raise ExecutionError("Failed to Cleanup Volume") - g.log.info("Successful in Cleanup Volume") + raise ExecutionError("Failed to umount the vol & cleanup Volume") + g.log.info("Successful in umounting the volume and Cleanup") - # calling GlusterBaseClass tearDownClass - cls.get_super_method(cls, 'tearDownClass')() + # Calling GlusterBaseClass tearDown + self.get_super_method(self, 'tearDown')() def test_quota_deem_statfs_quotad(self): """ |