aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/runner
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/runner
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/runner')
-rw-r--r--qtip/runner/runner.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/qtip/runner/runner.py b/qtip/runner/runner.py
index 47795bc3..8bdbfb78 100644
--- a/qtip/runner/runner.py
+++ b/qtip/runner/runner.py
@@ -36,7 +36,9 @@ def run_benchmark(result_dir, benchmarks):
os.makedirs(result_dir)
driver = AnsibleDriver({'args': {'result_dir': result_dir}})
driver.pre_run()
- return driver.run(benchmarks)
+ result = driver.run(benchmarks)
+ driver.cleanup()
+ return result
def generate_report(result_dir, start_time, stop_time):