Skip to content

Commit 8971d87

Browse files
committed
try to fix broken tests output capture
1 parent 2d7a354 commit 8971d87

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

ci/jobs/scripts/functional_tests_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _process_test_output(self):
135135
test_end = False
136136
elif (
137137
len(test_results) > 0
138-
and test_results[-1][1] in ("FAIL", "SKIPPED")
138+
and test_results[-1][1] in ("FAIL", "SKIPPED", "BROKEN")
139139
and not test_end
140140
):
141141
test_results[-1][3].append(original_line)

tests/clickhouse-test

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2330,7 +2330,15 @@ class TestCase:
23302330
)
23312331
if known_fail_reason:
23322332
result.status = TestStatus.BROKEN
2333-
result.description += f"Marked as broken: {known_fail_reason}"
2333+
if "Database: " in result.description.splitlines()[-1]:
2334+
result.description = result.description.replace(
2335+
"Database: ",
2336+
f"Marked as broken: {known_fail_reason}\nDatabase: ",
2337+
)
2338+
else:
2339+
result.description += (
2340+
f"\nMarked as broken: {known_fail_reason}"
2341+
)
23342342

23352343
if self.name in suite.blacklist_check:
23362344
if result.status == TestStatus.OK:

0 commit comments

Comments
 (0)