summaryrefslogtreecommitdiffstats
path: root/dovetail/report.py
diff options
context:
space:
mode:
authorLeo wang <grakiss.wanglei@huawei.com>2017-09-29 03:34:16 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-29 03:34:16 +0000
commitf0633486049e9e2d09001fd5c2a599a722f76d03 (patch)
tree1ed01c1399bfac712005decccde74f57be9da70f /dovetail/report.py
parent647e253b0093170ab378869cbd1392a43ffb2ebb (diff)
parent186cdc71bf9bdd00be1df87d90d1a4c57790208c (diff)
Merge "Support to run mandatory or optional test cases separately"
Diffstat (limited to 'dovetail/report.py')
-rw-r--r--dovetail/report.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index 535e5a25..28ac544f 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -55,11 +55,8 @@ class Report(object):
report_obj['duration'] = duration
report_obj['testcases_list'] = []
- testarea_list = []
- for value in testsuite_yaml['testcases_list']:
- if value is not None and (testarea == 'full' or testarea in value):
- testarea_list.append(value)
- for testcase_name in testarea_list:
+ testcase_list = Testcase.get_testcase_list(testsuite_yaml, testarea)
+ for testcase_name in testcase_list:
testcase = Testcase.get(testcase_name)
testcase_inreport = {}
testcase_inreport['name'] = testcase_name