summaryrefslogtreecommitdiffstats
path: root/dovetail/report.py
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2018-12-11 01:41:15 -0500
committerxudan <xudan16@huawei.com>2018-12-11 02:03:31 -0500
commit13e644d0ba893ddc5e2944c2e827fde7cd58ae72 (patch)
treecb4bc6a43179593a7ec7a1dfc3b3e5c7cfcc9ea6 /dovetail/report.py
parentbdbd7d405ac8603deed456e038cd13b0fde02b62 (diff)
Enable ShellRunner
1. fix the bug 'ShellRunner' object has no attribute 'archive_logs' 2. remove the testarea_supported because it's not very necessary for the test cases themselves and can make it a little more simple to add a test case with new test area JIRA: DOVETAIL-750 Change-Id: I71ee74615200376adca2a0db040753e5fce329bc Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/report.py')
-rw-r--r--dovetail/report.py19
1 files changed, 6 insertions, 13 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index 26cd6c52..f11bb242 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -121,22 +121,15 @@ class Report(object):
sub_report = collections.OrderedDict()
testcase_num = {}
testcase_passnum = {}
- for area in dt_cfg.dovetail_config['testarea_supported']:
- sub_report[area] = ''
- testcase_num[area] = 0
- testcase_passnum[area] = 0
testarea_scope = []
for testcase in report_data['testcases_list']:
- supported_areas = dt_cfg.dovetail_config['testarea_supported']
- pattern = re.compile('|'.join(supported_areas))
- area = pattern.findall(testcase['name'])
- if not supported_areas or not area:
- self.logger.error('Test case {} not in supported testarea.'
- .format(testcase['name']))
- return None
- area = area[0]
- testarea_scope.append(area)
+ area = testcase['name'].split('.')[1]
+ if area not in testarea_scope:
+ testarea_scope.append(area)
+ sub_report[area] = ''
+ testcase_num[area] = 0
+ testcase_passnum[area] = 0
sub_report[area] += '-%-25s %s\n' %\
(testcase['name'], testcase['result'])
if 'sub_testcase' in testcase: