Skip to content

Commit

Permalink
test: pretty print.
Browse files Browse the repository at this point in the history
Signed-off-by: Lee <44310445+lx200916@users.noreply.github.com>
  • Loading branch information
lx200916 committed Oct 18, 2023
1 parent cf34d57 commit 26267ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ci/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
print(" ✅ Test Passed!")
exit(0)
else:
message = template + f" ❌ Test Failed! \n 📊 {test_success}/{test_nums} \n"
message = template + f" ❌ Test Failed! \n 📊 {test_success}/{test_nums} \n Details:\n"
for ts in report.get("testsuites", []):
for test in ts.get("testsuite", []):
if len(test.get("failures", [])) > 0:
failures = test.get("failures", [])
message += f"❌ {test.get('classname', 'unknown')}.{test.get('name', 'unknown')} \n"
message += f" {test.get('classname', 'unknown')}.{test.get('name', 'unknown')} \n"
fs.notify(message)

0 comments on commit 26267ba

Please sign in to comment.