Skip state test on Windows

This commit is contained in:
Shane Lee 2024-03-15 08:46:26 -06:00 committed by Pedro Algarvio
parent 559ad14f54
commit 293f6b2d02
2 changed files with 5 additions and 1 deletions

View file

@ -464,7 +464,7 @@ def setup_windows(
try:
arch = os.environ.get("SALT_REPO_ARCH") or "amd64"
if package_type != "onedir":
root_dir = pathlib.Path(r"C:\Program Files\Salt Project\Salt")
root_dir = pathlib.Path(os.getenv("ProgramFiles"), "Salt Project", "Salt")
if packaging.version.parse(salt_release) > packaging.version.parse("3005"):
if package_type.lower() == "nsis":

View file

@ -5,6 +5,10 @@ import pytest
from pytestskipmarkers.utils import platform
from saltfactories.utils.functional import MultiStateResult
pytestmark = [
pytest.mark.skip_on_windows,
]
@pytest.fixture
def files(tmp_path):