aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2015-10-05 17:15:26 -0700
committerArthur She <arthur.she@linaro.org>2015-10-05 17:15:26 -0700
commit0a3f1e55af3d3b5efbf99c8e2e0b5493753c17fb (patch)
treedf6a0932bd4487f088f0016ab31da573d870b582
parent864bf2b8d0eb8781b87357f84d22e46c24c2765a (diff)
Remove "lava-test-shell-*" from benchmark tests
modified: report_automation.py
-rwxr-xr-xreport_automation.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/report_automation.py b/report_automation.py
index f867feb..c0de257 100755
--- a/report_automation.py
+++ b/report_automation.py
@@ -190,13 +190,14 @@ class Report(object):
benchmark_test['test_id'] = ast.literal_eval(src['test_params'])['TEST_NAME']
benchmark_test['result_link'] = job_info['result_link']
for test in test_run['test_results']:
- test_case = {}
- test_case['score'] = ""
- test_case['test_id'] = test['test_case_id']
- test_case['result'] = test['result'].upper()
- if 'measurement' in test:
- test_case['score'] = "%s %s" % (test['measurement'], test['units'])
- sub_tests.append(test_case)
+ if not str(test['test_case_id']).startswith('lava-test-shell'):
+ test_case = {}
+ test_case['score'] = ""
+ test_case['test_id'] = test['test_case_id']
+ test_case['result'] = test['result'].upper()
+ if 'measurement' in test:
+ test_case['score'] = "%s %s" % (test['measurement'], test['units'])
+ sub_tests.append(test_case)
if len(sub_tests) > 0:
benchmark_test['status'] = "PASS"
else:
@@ -248,7 +249,7 @@ class Report(object):
self.cts_tests['total_passed'] += pkg['passed']
self.cts_tests['total_failed'] += pkg['failed']
self.cts_tests['total_skipped'] += pkg['skipped']
- if self.cts_tests['total_passed'] != 0:
+ if self.cts_tests['total_pkgs'] != 0:
self.cts_tests['total_pass_rate'] = 100 * self.cts_tests['total_passed']/self.cts_tests['total_pkgs']
return {