Skip to content

Commit 016243c

Browse files
committed
place the crossout message at the log start
1 parent 23a1102 commit 016243c

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tests/clickhouse-test

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,15 +2330,11 @@ class TestCase:
23302330
)
23312331
if known_fail_reason:
23322332
result.status = TestStatus.BROKEN
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-
)
2333+
2334+
# Place the message on the second line
2335+
result.description.replace(
2336+
"\n", f"\nMarked as broken: {known_fail_reason}\n", count=1
2337+
)
23422338

23432339
if self.name in suite.blacklist_check:
23442340
if result.status == TestStatus.OK:

0 commit comments

Comments
 (0)