Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .ci/generate_test_report_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ def generate_report(
if return_code == 0:
report.extend(
[
"The build succeeded and no tests ran. This is expected in some "
"build configurations."
":white_check_mark: The build succeeded and no tests ran. "
"This is expected in some build configurations."
]
)
else:
Expand Down Expand Up @@ -272,6 +272,10 @@ def plural(num_tests):
]
)
report.extend(_format_failures(ninja_failures, failure_explanations))
else:
report.extend(
["", ":white_check_mark: The build succeeded and all tests passed."]
)

if failures or return_code != 0:
report.extend(["", UNRELATED_FAILURES_STR])
Expand Down
6 changes: 4 additions & 2 deletions .ci/generate_test_report_lib_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_title_only(self):
"""\
# Foo
The build succeeded and no tests ran. This is expected in some build configurations."""
:white_check_mark: The build succeeded and no tests ran. This is expected in some build configurations."""
),
)

Expand Down Expand Up @@ -308,7 +308,9 @@ def test_no_failures(self):
"""\
# Foo
* 1 test passed"""
* 1 test passed
:white_check_mark: The build succeeded and all tests passed."""
)
),
)
Expand Down