-
Notifications
You must be signed in to change notification settings - Fork 20
/
report_bugs.py
24 lines (22 loc) · 990 Bytes
/
report_bugs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import json
import glob
test_result_files = glob.glob("sieve_test_results/*.json")
potential_bug_list = ""
for test_result_file in test_result_files:
test_result = json.load(open(test_result_file))
for controller in test_result:
for test_case in test_result[controller]:
for mode in test_result[controller][test_case]:
for test_plan in test_result[controller][test_case][mode]:
inner_result = test_result[controller][test_case][mode][test_plan]
if (
inner_result["injection_completed"]
and inner_result["workload_completed"]
and inner_result["no_exception"]
and inner_result["number_errors"] > 0
):
potential_bug_list += test_result_file + "\n"
print(
"Please refer to the following test results for potential bugs found by Sieve\n"
+ potential_bug_list
)