summaryrefslogtreecommitdiffstats
path: root/dovetail/report.py
diff options
context:
space:
mode:
Diffstat (limited to 'dovetail/report.py')
-rw-r--r--dovetail/report.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index c74595cc..8d157559 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -257,14 +257,10 @@ class FunctestCrawler(Crawler):
if not os.path.exists(file_path):
self.logger.error('Result file not found: {}'.format(file_path))
return None
- if testcase_name in dt_cfg.dovetail_config['functest_testcase']:
- complex_testcase = False
- elif testcase_name in dt_cfg.dovetail_config['functest_testsuite']:
- complex_testcase = True
- else:
- self.logger.error(
- "Wrong Functest test case {}.".format(testcase_name))
- return None
+
+ sub_testcase_list = testcase.sub_testcase()
+ complex_testcase = True if sub_testcase_list else False
+
with open(file_path, 'r') as f:
for jsonfile in f:
try: