Skip to content

Commit

Permalink
tests: integration: Skip spawning the DNF test server in GH workflows
Browse files Browse the repository at this point in the history
Previous commits enabled the test DNF server as a background service
inside a Github workflows job, so we must not spin up another container
from within the pytest context.
Inspired by commit 919e561 .

Signed-off-by: Erik Skultety <[email protected]>
  • Loading branch information
eskultety committed Oct 11, 2024
1 parent 38ece77 commit d47d051
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ def _check_ssl_configuration() -> None:
)
resp.raise_for_status()

if os.getenv("CACHI2_TEST_LOCAL_DNF_SERVER") != "true":
if (
os.getenv("CI")
and os.getenv("GITHUB_ACTIONS")
or os.getenv("CACHI2_TEST_LOCAL_DNF_SERVER") != "true"
):
yield
return

Expand Down

0 comments on commit d47d051

Please sign in to comment.