aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/runner/runner.py
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2017-03-13 17:16:50 +0800
committerzhihui wu <zhihui.wu2006+zte@gmail.com>2017-03-15 01:41:32 +0000
commit7fab4cf1fa75d4251369e230f2792df0a16b4019 (patch)
tree48844a967b6a68dd5240d2f9886a87fa88a87f88 /qtip/runner/runner.py
parent3feeebf2165ddec11cd0ee8bf60200961ef48c77 (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/runner/runner.py')
-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 47795bc..8bdbfb7 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):