Skip to content

Commit

Permalink
Let's just skip on Aarch64 instead
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
  • Loading branch information
s0undt3ch committed Nov 9, 2023
1 parent b2dea5d commit fc66eb8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/pytests/integration/ssh/test_saltcheck.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import pytest
from pytestskipmarkers.utils import platform

pytestmark = [
pytest.mark.slow_test,
pytest.mark.skip_on_windows(reason="salt-ssh not available on Windows"),
]


@pytest.fixture
def _skip_on_fips_and_arm64(grains):
if platform.is_fips_enabled() and grains["cpuarch"] == "aarch64":
pytest.skip("Test cannot run on a FIPS enabled platform")


def test_saltcheck_run_test(salt_ssh_cli):
"""
test saltcheck.run_test with salt-ssh
Expand All @@ -30,7 +23,7 @@ def test_saltcheck_run_test(salt_ssh_cli):
assert ret.data["status"] == "Pass"


@pytest.mark.usefixtures("_skip_on_fips_and_arm64")
@pytest.mark.skip_on_aarch64
def test_saltcheck_state(salt_ssh_cli):
"""
saltcheck.run_state_tests
Expand Down

0 comments on commit fc66eb8

Please sign in to comment.