From 7fab4cf1fa75d4251369e230f2792df0a16b4019 Mon Sep 17 00:00:00 2001 From: "wu.zhihui" Date: Mon, 13 Mar 2017 17:16:50 +0800 Subject: add the cleanup step in runner.py Add the cleanup step in runner.py Change-Id: I0016986485eab5d7ab45d4a7a393bea5fb6f96b5 Signed-off-by: wu.zhihui (cherry picked from commit 57ec2e7a9757cbb1da8a1f73f0c55e8a5cb67bec) --- qtip/runner/runner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qtip/runner/runner.py') 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): -- cgit 1.2.3-korg