From e0db51bbd29b36944362cf325daab234e24ee2af Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Tue, 4 Sep 2012 19:03:24 +0100 Subject: [PATCH] heat tests : FuncUtils cleanup use heat_client Use heat_client calls (not subprocess) in cleanup Change-Id: Ie622d22af66ce00272df975823a74a8fa7bd25c8 Signed-off-by: Steven Hardy --- heat/tests/functional/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/heat/tests/functional/util.py b/heat/tests/functional/util.py index 0b1d946d..deba33f8 100644 --- a/heat/tests/functional/util.py +++ b/heat/tests/functional/util.py @@ -368,7 +368,9 @@ class FuncUtils: def cleanup(self): self.ssh.close() - subprocess.call(['heat', 'delete', self.stackname]) + parameters = {'StackName': self.stackname} + c = self.get_heat_client() + c.delete_stack(**parameters) if __name__ == '__main__': sys.argv.append(__file__) -- 2.45.2