Skip to content

Commit 83b0de4

Browse files
committed
add counter for BROKEN tests
1 parent d9646d3 commit 83b0de4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ci/jobs/scripts/functional_tests_results.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class Summary:
3636
unknown: int
3737
failed: int
3838
success: int
39+
broken: int
3940
test_results: List[Result]
4041
hung: bool = False
4142
server_died: bool = False
@@ -54,6 +55,7 @@ def _process_test_output(self):
5455
unknown = 0
5556
failed = 0
5657
success = 0
58+
broken = 0
5759
hung = False
5860
server_died = False
5961
retries = False
@@ -134,6 +136,8 @@ def _process_test_output(self):
134136
)
135137
)
136138
if "UNKNOWN_DATABASE" in test_results_[-1].info:
139+
broken += 1
140+
failed -= 1
137141
test_results_[-1].set_status(Result.StatusExtended.BROKEN)
138142
test_results_[
139143
-1
@@ -160,6 +164,7 @@ def _process_test_output(self):
160164
unknown=unknown,
161165
failed=failed,
162166
success=success,
167+
broken=broken,
163168
test_results=test_results,
164169
hung=hung,
165170
server_died=server_died,
@@ -227,7 +232,7 @@ def run(self):
227232
pass
228233

229234
if not info:
230-
info = f"Failed: {s.failed}, Passed: {s.success}, Skipped: {s.skipped}"
235+
info = f"Failed: {s.failed}, Passed: {s.success}, Skipped: {s.skipped}, Broken: {s.broken}"
231236

232237
# TODO: !!!
233238
# def test_result_comparator(item):

0 commit comments

Comments
 (0)