From 6cde21048a0fdca87890f248b50d302be755d0c2 Mon Sep 17 00:00:00 2001 From: dahn Date: Wed, 21 Oct 2020 09:30:26 +0200 Subject: [PATCH] make sure dependencies get cleaned up after their depenedants --- test/integration/smoke/test_storage_policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/smoke/test_storage_policy.py b/test/integration/smoke/test_storage_policy.py index c89c14d5d17..c3e04ea3d7e 100644 --- a/test/integration/smoke/test_storage_policy.py +++ b/test/integration/smoke/test_storage_policy.py @@ -88,7 +88,7 @@ class TestVMWareStoragePolicies(cloudstackTestCase): def tearDown(self): try: self.debug("Cleaning up the resources") - cleanup_resources(self.apiclient, self.cleanup) + cleanup_resources(self.apiclient, reversed(self.cleanup)) self.debug("Cleanup complete!") except Exception as e: self.debug("Warning! Exception in tearDown: %s" % e)