diff options
author | wu.zhihui <wu.zhihui1@zte.com.cn> | 2017-03-13 17:16:50 +0800 |
---|---|---|
committer | zhihui wu <zhihui.wu2006+zte@gmail.com> | 2017-03-15 01:41:32 +0000 |
commit | 7fab4cf1fa75d4251369e230f2792df0a16b4019 (patch) | |
tree | 48844a967b6a68dd5240d2f9886a87fa88a87f88 /qtip/driver/ansible_driver.py | |
parent | 3feeebf2165ddec11cd0ee8bf60200961ef48c77 (diff) |
add the cleanup step in runner.py
Add the cleanup step in runner.py
Change-Id: I0016986485eab5d7ab45d4a7a393bea5fb6f96b5
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit 57ec2e7a9757cbb1da8a1f73f0c55e8a5cb67bec)
Diffstat (limited to 'qtip/driver/ansible_driver.py')
-rw-r--r-- | qtip/driver/ansible_driver.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qtip/driver/ansible_driver.py b/qtip/driver/ansible_driver.py index 356c39b7..34ef46ed 100644 --- a/qtip/driver/ansible_driver.py +++ b/qtip/driver/ansible_driver.py @@ -46,6 +46,9 @@ class AnsibleDriver(object): self.env_setup_flag = True logger.info("Setup test enviroment, Done!") + def cleanup(self): + self.env.cleanup() + def run(self, metric_list, **kwargs): if 'args' in self.config: extra_vars = self.merge_two_dicts(kwargs, self.config['args']) |