Skip to content

Commit

Permalink
state
Browse files Browse the repository at this point in the history
  • Loading branch information
FAlbertDev committed Jul 28, 2023
1 parent 9fa768f commit 54f4d22
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/scripts/ci/ci_tlsanvil_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def failing_test_info(json_data, method_id) -> str:
info_str = ""
try:
method_class, method_name = method_id.rsplit('.', 1)
info = [f"::group::Error: {method_name} - Unexpected result '{json_data['Result']}'"]
info = [f"Error: {method_name} - Unexpected result '{json_data['Result']}'"]
info += [""]
info += [f"Class Name: 'de.rub.nds.tlstest.suite.tests.{method_class}'"]
info += [f"Method Name: '{method_name}'"]
Expand Down Expand Up @@ -85,13 +85,17 @@ def failing_test_info(json_data, method_id) -> str:
if len(additional_test_info) == 1:
info += ["", f"Additional Test Info: {additional_test_info[0]}"]
info += [""]

# Color in red
info = [f"\033[0;31m{line}\033[0m" for line in info]

info += ["::endgroup::"]

info_str = "\n".join(info)

# In GitHub Actions logging group
info_str = f"::group::{info_str}\n::endgroup::"




except KeyError:
logging.warning("Cannot process test info.")
Expand Down

0 comments on commit 54f4d22

Please sign in to comment.