Skip to content

Commit 9ef58ab

Browse files
authored
Merge pull request #8 from cidrblock/main
Better error handling
2 parents 73cc276 + 22786f4 commit 9ef58ab

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
@@ -356,6 +356,8 @@ def github_log(request: pytest.FixtureRequest) -> Generator[None, None, None]:
356356

357357
if hasattr(request.node, "rep_call"):
358358
if request.node.rep_setup.passed and request.node.rep_call.failed:
359-
_github_action_log(f"::error title=Integration test failure::{name}")
359+
_github_action_log("::endgroup::")
360+
msg = f"Integration test failure: '{name}'"
361+
_github_action_log(f"::error title={msg}::{msg}")
360362

361363
_github_action_log("::endgroup::")

0 commit comments

Comments
 (0)