mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 10:56:08 +08:00
[CI] Add checkmark emojis for passing builds (#170183)
This better matches the code formatter and I personally find the visual indication valuable when I am scrolling/glancing at a comment.
This commit is contained in:
@@ -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:
|
||||
@@ -272,6 +272,10 @@ def generate_report(
|
||||
]
|
||||
)
|
||||
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])
|
||||
|
||||
@@ -194,7 +194,7 @@ class TestReports(unittest.TestCase):
|
||||
"""\
|
||||
# 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."""
|
||||
),
|
||||
)
|
||||
|
||||
@@ -308,7 +308,9 @@ class TestReports(unittest.TestCase):
|
||||
"""\
|
||||
# Foo
|
||||
|
||||
* 1 test passed"""
|
||||
* 1 test passed
|
||||
|
||||
:white_check_mark: The build succeeded and all tests passed."""
|
||||
)
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user