mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Removing tech debt and restoring original pytest.skip for tests
This commit is contained in:
parent
6d10c20ea8
commit
3d7ebf028d
10 changed files with 16 additions and 19 deletions
|
@ -1,11 +1,8 @@
|
|||
import pytest
|
||||
from pytestskipmarkers.utils import platform
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.skip_unless_on_linux,
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.skip_on_windows(reason="Linux test only")
|
||||
def test_services(install_salt, salt_call_cli):
|
||||
"""
|
||||
Check if Services are enabled/disabled
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import pytest
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.skip_unless_on_linux,
|
||||
pytest.mark.skip_on_windows,
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -3,10 +3,6 @@ import subprocess
|
|||
import pytest
|
||||
from pytestskipmarkers.utils import platform
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.skip_unless_on_linux,
|
||||
]
|
||||
|
||||
|
||||
def test_salt_call_local(salt_call_cli):
|
||||
"""
|
||||
|
|
|
@ -3,7 +3,7 @@ from sys import platform
|
|||
import pytest
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.skip_unless_on_linux,
|
||||
pytest.mark.skip_on_windows,
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import pytest
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.skip_unless_on_linux,
|
||||
pytest.mark.skip_on_windows,
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import pytest
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.skip_unless_on_linux,
|
||||
pytest.mark.skip_on_windows,
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import pytest
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.skip_unless_on_linux,
|
||||
pytest.mark.skip_on_windows,
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ from pytestskipmarkers.utils import platform
|
|||
from saltfactories.utils.functional import MultiStateResult
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.skip_unless_on_linux,
|
||||
pytest.mark.skip_on_windows,
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,10 @@ import psutil
|
|||
import pytest
|
||||
from saltfactories.utils.tempfiles import temp_directory
|
||||
|
||||
pytestmark = [pytest.mark.skip_unless_on_linux]
|
||||
pytestmark = [
|
||||
pytest.mark.skip_on_windows,
|
||||
pytest.mark.skip_on_darwin,
|
||||
]
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
@ -5,11 +5,8 @@ import subprocess
|
|||
import pytest
|
||||
from pytestskipmarkers.utils import platform
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.skip_unless_on_linux,
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.skip_on_windows
|
||||
def test_salt_version(version, install_salt):
|
||||
"""
|
||||
Test version output from salt --version
|
||||
|
@ -37,6 +34,7 @@ def test_salt_version(version, install_salt):
|
|||
assert actual == expected
|
||||
|
||||
|
||||
@pytest.mark.skip_on_windows
|
||||
def test_salt_versions_report_master(install_salt):
|
||||
"""
|
||||
Test running --versions-report on master
|
||||
|
@ -57,6 +55,7 @@ def test_salt_versions_report_master(install_salt):
|
|||
ret.stdout.matcher.fnmatch_lines([f"*{py_version}*"])
|
||||
|
||||
|
||||
@pytest.mark.skip_on_windows
|
||||
def test_salt_versions_report_minion(salt_cli, salt_call_cli, salt_minion):
|
||||
"""
|
||||
Test running test.versions_report on minion
|
||||
|
@ -140,6 +139,8 @@ def test_symlinks_created(version, symlink, install_salt):
|
|||
ret.stdout.matcher.fnmatch_lines([f"*{version}*"])
|
||||
|
||||
|
||||
@pytest.mark.skip_on_windows
|
||||
@pytest.mark.skip_on_darwin
|
||||
def test_compare_pkg_versions_redhat_rc(version, install_salt):
|
||||
"""
|
||||
Test compare pkg versions for redhat RC packages. A tilde should be included
|
||||
|
|
Loading…
Add table
Reference in a new issue