aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/driver
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2017-03-13 17:16:50 +0800
committerwu.zhihui <wu.zhihui1@zte.com.cn>2017-03-13 18:14:50 +0800
commit57ec2e7a9757cbb1da8a1f73f0c55e8a5cb67bec (patch)
tree71675cd658f79bedbd64f7b91d8ae2382a5156af /qtip/driver
parenta5145885c7a43622f803534ed97890ef9acb852d (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>
Diffstat (limited to 'qtip/driver')
-rw-r--r--qtip/driver/ansible_driver.py3
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'])