diff options
author | Leo wang <grakiss.wanglei@huawei.com> | 2017-09-29 03:34:16 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-29 03:34:16 +0000 |
commit | f0633486049e9e2d09001fd5c2a599a722f76d03 (patch) | |
tree | 1ed01c1399bfac712005decccde74f57be9da70f /dovetail/report.py | |
parent | 647e253b0093170ab378869cbd1392a43ffb2ebb (diff) | |
parent | 186cdc71bf9bdd00be1df87d90d1a4c57790208c (diff) |
Merge "Support to run mandatory or optional test cases separately"
Diffstat (limited to 'dovetail/report.py')
-rw-r--r-- | dovetail/report.py | 7 |
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 |