Skip to content

Commit 4cd6a55

Browse files
authored
feat: Only log failing scenarios (#4005)
* feat: Only log failing scenarios Signed-off-by: jamshale <jamiehalebc@gmail.com> * fix: Remove silent mode Signed-off-by: jamshale <jamiehalebc@gmail.com> --------- Signed-off-by: jamshale <jamiehalebc@gmail.com>
1 parent 60083ba commit 4cd6a55

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/scenario-integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ jobs:
6565
docker build -t acapy-test -f docker/Dockerfile.run .
6666
cd scenarios
6767
poetry install --no-root
68-
poetry run pytest -s -m examples
68+
poetry run pytest -m examples

scenarios/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def compose(self, *command: str) -> int:
4141

4242
def cleanup(self):
4343
"""Runs docker compose down -v for cleanup."""
44-
self.compose("logs")
4544
exit_status = self.compose("down", "-v")
4645
if exit_status != 0:
4746
raise ExampleFailedException(
@@ -56,6 +55,7 @@ def handle_run(self, *command: str):
5655
try:
5756
exit_status = self.compose(*command)
5857
if exit_status != 0:
58+
self.compose("logs")
5959
raise ExampleFailedException(
6060
f"Command failed with exit status: {exit_status}",
6161
exit_status=exit_status,

0 commit comments

Comments
 (0)