Skip to content

Commit

Permalink
Skip test requiring systemd inside container
Browse files Browse the repository at this point in the history
  • Loading branch information
agraul committed Feb 12, 2024
1 parent cf5699a commit 3ada277
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/pytests/integration/ssh/test_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Simple Smoke Tests for Connected SSH minions
"""

import os

import pytest
from saltfactories.utils.functional import StateResult

Expand All @@ -10,7 +12,10 @@
pytest.mark.skip_on_windows(reason="salt-ssh not available on Windows"),
]

INSIDE_CONTAINER = os.getenv("HOSTNAME", "") == "salt-test-container"


@pytest.mark.skip_if(INSIDE_CONTAINER, reason="No systemd in container.")
@pytest.mark.skip_if_not_root
def test_service(salt_ssh_cli, grains):
service = "cron"
Expand Down

0 comments on commit 3ada277

Please sign in to comment.