From 191f86a9713b857e9d3047a972fa6f8c8aca6c59 Mon Sep 17 00:00:00 2001 From: xudan Date: Tue, 8 May 2018 02:52:34 -0400 Subject: 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 --- dovetail/test_runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dovetail/test_runner.py') 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 -- cgit 1.2.3-korg