summaryrefslogtreecommitdiffstats
path: root/dovetail/test_runner.py
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2018-05-08 02:52:34 -0400
committerxudan <xudan16@huawei.com>2018-05-08 04:09:09 -0400
commit191f86a9713b857e9d3047a972fa6f8c8aca6c59 (patch)
treed2058893d25c2431867dcd8f0b3f7de26f7b9030 /dovetail/test_runner.py
parent7adecf3d030f97ee1d19dcbda3272f88b71dd5d1 (diff)
Improve the CLI of Dovetail tool
The CLI of dovetail tool needs some improvement. 1. Add an option '--testcase' to support specify test case. 2. Add an option '--no-clean' to keep functest/yardstick/bottlenecks containers for debugging after running the test cases. 3. Improve the local report section. a. Remove some info that is not necessary b. Make the info more clearly JIRA: DOVETAIL-588 Change-Id: Ic769a6e2788b407c3df08ccd593a0ecdaa35e5ea Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/test_runner.py')
-rw-r--r--dovetail/test_runner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dovetail/test_runner.py b/dovetail/test_runner.py
index f43b4739..7370c81b 100644
--- a/dovetail/test_runner.py
+++ b/dovetail/test_runner.py
@@ -113,7 +113,8 @@ class DockerRunner(object):
ret, msg = Container.exec_cmd(container_id, cmd)
self.testcase.cleaned(True)
- Container.clean(container_id, self.type)
+ if not dt_cfg.dovetail_config['noclean']:
+ Container.clean(container_id, self.type)
def save_logs(self):
pass