summaryrefslogtreecommitdiffstats
path: root/dovetail/container.py
diff options
context:
space:
mode:
authorLeo Wang <grakiss.wanglei@huawei.com>2016-12-14 04:20:09 -0500
committerLeo Wang <grakiss.wanglei@huawei.com>2016-12-14 04:20:09 -0500
commite5be1b8b5c5e2714ad4a558da2aa3727a70ef516 (patch)
tree6bbd744ae853e42302fb005ad69bfdf653b753d5 /dovetail/container.py
parent461902c1f4f840d361d014b079371f99544e5c17 (diff)
[dovetail tool] support shell scripts for testcase validation
JIRA: DOVETAIL-46 1. for now a testcase has two kinds of validation types(functest, yardstick), and it is not enough to check the complete funcionality 2. add new validation type(shell) for extra validation of the test case to make result more accurate and more convincing. Change-Id: I5c049a71f11cca71a7914f8af704c1983aba3dca Signed-off-by: Leo Wang <grakiss.wanglei@huawei.com>
Diffstat (limited to 'dovetail/container.py')
-rw-r--r--dovetail/container.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/dovetail/container.py b/dovetail/container.py
index af05dcd5..87174727 100644
--- a/dovetail/container.py
+++ b/dovetail/container.py
@@ -77,5 +77,7 @@ class Container:
@classmethod
def exec_cmd(cls, container_id, sub_cmd, exit_on_error=False):
+ if sub_cmd == "":
+ return
cmd = 'sudo docker exec %s /bin/bash -c "%s"' % (container_id, sub_cmd)
dt_utils.exec_cmd(cmd, cls.logger, exit_on_error)