mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 01:06:32 +00:00
[ci] Fix unit tests for test report generator
Last time I fixed a bug here I forgot to update them.
This commit is contained in:
parent
88c2af80fa
commit
3b8426d340
@ -18,7 +18,7 @@ def junit_from_xml(xml):
|
||||
|
||||
class TestReports(unittest.TestCase):
|
||||
def test_title_only(self):
|
||||
self.assertEqual(_generate_report("Foo", []), ("", None))
|
||||
self.assertEqual(_generate_report("Foo", []), ("", "success"))
|
||||
|
||||
def test_no_tests_in_testsuite(self):
|
||||
self.assertEqual(
|
||||
@ -336,7 +336,7 @@ def _generate_report(title, junit_objects, size_limit=1024 * 1024, list_failures
|
||||
)
|
||||
|
||||
if not tests_run:
|
||||
return ("", style)
|
||||
return ("", None)
|
||||
|
||||
style = "error" if tests_failed else "success"
|
||||
report = [f"# {title}", ""]
|
||||
|
Loading…
x
Reference in New Issue
Block a user