aboutsummaryrefslogtreecommitdiffstats
path: root/tools/report
diff options
context:
space:
mode:
Diffstat (limited to 'tools/report')
-rw-r--r--tools/report/report.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/report/report.py b/tools/report/report.py
index 16ef0eb3..92463f26 100644
--- a/tools/report/report.py
+++ b/tools/report/report.py
@@ -70,7 +70,7 @@ def _get_env(result):
return env
-def generate(input_file, tc_results, tc_stats):
+def generate(input_file, tc_results, tc_stats, performance_test=True):
"""Generate actual report.
Generate a Markdown-formatted file using results of tests and some
@@ -89,10 +89,16 @@ def generate(input_file, tc_results, tc_stats):
try:
for result in tc_results:
test_config = {}
- for tc_conf in S.getValue('PERFORMANCE_TESTS'):
- if tc_conf['Name'] == result[ResultsConstants.ID]:
- test_config = tc_conf
- break
+ if performance_test:
+ for tc_conf in S.getValue('PERFORMANCE_TESTS'):
+ if tc_conf['Name'] == result[ResultsConstants.ID]:
+ test_config = tc_conf
+ break
+ else:
+ for tc_conf in S.getValue('INTEGRATION_TESTS'):
+ if tc_conf['Name'] == result[ResultsConstants.ID]:
+ test_config = tc_conf
+ break
# pass test results, env details and configuration to template
tests.append({