From 186cdc71bf9bdd00be1df87d90d1a4c57790208c Mon Sep 17 00:00:00 2001 From: xudan Date: Mon, 25 Sep 2017 23:30:08 -0400 Subject: 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 --- dovetail/report.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'dovetail/report.py') 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 -- cgit 1.2.3-korg