From 12a1924c8e1c966a536140894273486dcc92e73f Mon Sep 17 00:00:00 2001 From: Vasu Kulkarni Date: Tue, 20 Dec 2016 12:39:25 -0800 Subject: [PATCH] cleanup temporary files at the end of the test Signed-off-by: Vasu Kulkarni --- teuthology/task/ceph_ansible.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/teuthology/task/ceph_ansible.py b/teuthology/task/ceph_ansible.py index 0d8c7c663a..c303f1876d 100644 --- a/teuthology/task/ceph_ansible.py +++ b/teuthology/task/ceph_ansible.py @@ -205,6 +205,12 @@ class CephAnsible(Task): hosts_file.flush() return hosts_file.name + def teardown(self): + log.info("Cleaning up temporary files") + os.remove(self.inventory) + os.remove(self.playbook_file) + os.remove(self.extra_vars_file) + def wait_for_ceph_health(self): with contextutil.safe_while(sleep=15, tries=6, action='check health') as proceed: -- 2.39.5