Skip to content

Commit

Permalink
Limit test to Linux which use systemctl
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurphy18 committed Aug 14, 2024
1 parent b64823f commit 81598d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/pytests/pkg/integration/test_enabled_disabled.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pytestskipmarkers.utils import platform


@pytest.mark.skip_on_windows(reason="Linux test only")
@pytest.mark.skip_unless_on_linux(reason="Linux test only")
def test_services(install_salt, salt_call_cli):
"""
Check if Services are enabled/disabled
Expand Down
5 changes: 4 additions & 1 deletion tests/pytests/pkg/integration/test_salt_ufw.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

import pytest

pytestmark = [
pytest.mark.skip_unless_on_linux,
]


@pytest.fixture
def salt_systemd_setup(
Expand All @@ -26,7 +30,6 @@ def salt_systemd_setup(
assert ret.returncode == 0


@pytest.mark.skip_on_windows
@pytest.mark.skip_if_binaries_missing("ufw")
def test_salt_ufw(salt_systemd_setup, salt_call_cli, install_salt):
"""
Expand Down
3 changes: 1 addition & 2 deletions tests/pytests/pkg/integration/test_salt_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
from saltfactories.utils.tempfiles import temp_directory

pytestmark = [
pytest.mark.skip_on_windows,
pytest.mark.skip_on_darwin,
pytest.mark.skip_unless_on_linux,
]


Expand Down
2 changes: 1 addition & 1 deletion tests/pytests/pkg/integration/test_systemd_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest

pytestmark = [
pytest.mark.skip_on_windows(reason="Linux test only"),
pytest.mark.skip_unless_on_linux,
]


Expand Down

0 comments on commit 81598d0

Please sign in to comment.