Skip to content

Commit d730495

Browse files
authored
Merge pull request #22 from cidrblock/matrix_log
Job name in error
2 parents 16cfbb8 + 08c9f43 commit d730495

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pytest_ansible_network_integration/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,10 @@ def github_log(request: pytest.FixtureRequest) -> Generator[None, None, None]:
383383
if hasattr(request.node, "rep_call"):
384384
if request.node.rep_setup.passed and request.node.rep_call.failed:
385385
_github_action_log("::endgroup::")
386+
gh_job = os.environ.get("GITHUB_JOB", "Unknown job")
387+
title = f"{gh_job}: {name}"
386388
msg = f"Integration test failure: '{name}'"
387-
_github_action_log(f"::error title={msg}::{msg}")
389+
_github_action_log(f"::error title={title}::{msg}")
388390

389391
_github_action_log("::endgroup::")
390392

0 commit comments

Comments
 (0)