diff options
author | xudan <xudan16@huawei.com> | 2017-09-25 23:30:08 -0400 |
---|---|---|
committer | xudan <xudan16@huawei.com> | 2017-09-25 23:30:08 -0400 |
commit | 186cdc71bf9bdd00be1df87d90d1a4c57790208c (patch) | |
tree | 7849337a1bd5da7f036183903189000dba741bbb /dovetail/report.py | |
parent | 6f47c82d4b6f830863ff1330163d869baa6c7eec (diff) |
Support to run mandatory or optional test cases separately
1. Currently, dovetail can run a test suite or a test area in that test suite.
2. The test areas in one test suite are not divided into optional and mandatory.
3. Split them and support to run just mandatory or optional.
4. Support to run multiple test areas.
JIRA: DOVETAIL-505
Change-Id: I42cd7b4e11c3e3674c806e9bc999b782bf5c85c6
Signed-off-by: xudan <xudan16@huawei.com>
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 fa6a0ba4..bd74ad1c 100644 --- a/dovetail/report.py +++ b/dovetail/report.py @@ -54,11 +54,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 |