summaryrefslogtreecommitdiffstats
path: root/dovetail
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2016-11-28 21:25:35 -0500
committerMatthewLi <matthew.lijun@huawei.com>2016-11-29 03:51:28 -0500
commita76ccc2ece0e29df1ac9b858ff5d17d4c461ae0c (patch)
tree175eef765d1e80b4cace6d392d73e775df90aa4d /dovetail
parentb9929410665d9809669b307b04904312d785be5a (diff)
dovetail tool: To exec testsuite loading after command line arguments is True
JIRA: DOVETAIL-142 Change-Id: I1d8a444580755b4f4d9a0f7098b4b17ea66d6f58 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'dovetail')
-rwxr-xr-xdovetail/run.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dovetail/run.py b/dovetail/run.py
index cc0e7940..e908f3ab 100755
--- a/dovetail/run.py
+++ b/dovetail/run.py
@@ -138,8 +138,6 @@ def main(*args, **kwargs):
if 'tag' in kwargs and kwargs['tag'] is not None:
set_container_tags(kwargs['tag'])
- load_testcase()
- testsuite_yaml = load_testsuite(kwargs['testsuite'])
testarea = kwargs['testarea']
testsuite_validation = False
testarea_validation = False
@@ -148,6 +146,8 @@ def main(*args, **kwargs):
if kwargs['testsuite'] in dt_config.testsuite_supported:
testsuite_validation = True
if testsuite_validation and testarea_validation:
+ testsuite_yaml = load_testsuite(kwargs['testsuite'])
+ load_testcase()
run_test(testsuite_yaml, testarea, logger)
Report.generate(testsuite_yaml, testarea)
else: