Skip to content

Commit

Permalink
Update xfails
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Feb 19, 2024
1 parent 9ac9753 commit 0d5aa83
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions tests/test_verify_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,15 @@ def test_symlinked_scripts(pipexec, tmp_path, build):
), f"Could not run script for {name}, likely not pinning to the correct python"


@pytest.mark.parametrize("salt_branch", ["3006.x", "master"])
@pytest.mark.parametrize("salt_branch", ["3006.x", "3007.x", "master"])
def test_pip_install_salt_w_static_requirements(pipexec, build, tmpdir, salt_branch):
if salt_branch in ["3007.x", "master"]:
pytest.xfail("Known failure")

if get_build_version().startswith("3.11"):
pytest.xfail("3.11 builds fail.")

if salt_branch in ["3007.x", "master"]:
if salt_branch == "3006.x" and sys.platform == "win32":
pytest.xfail("Known failure")

env = os.environ.copy()
Expand Down Expand Up @@ -297,8 +300,8 @@ def test_pip_install_pyzmq(pipexec, build, tmpdir, pyzmq_version):
arch = build_arch()
if pyzmq_version == "23.2.0" and sys.platform == "darwin" and arch == "arm64":
pytest.xfail("pyzmq 23.2.0 fails on macos arm64")
if sys.platform == "win32" and pyzmq_version == "25.1.2" and arch == "arm64":
pytest.xfail("pyzmq 25.1.2 fails on windows arm64")
if sys.platform == "win32" and pyzmq_version == "25.1.2":
pytest.xfail("pyzmq 25.1.2 fails on windows")
env = os.environ.copy()
env["RELENV_BUILDENV"] = "yes"
env["USE_STATIC_REQUIREMENTS"] = "1"
Expand Down Expand Up @@ -355,6 +358,16 @@ def test_pip_install_and_import_libcloud(pipexec, pyexec):


def test_pip_install_salt_pip_dir(pipexec, build):
if (
get_build_version().startswith("3.11")
and sys.platform == "darwin"
):
pytest.xfail("Known failure on py 3.11 macos")
if (
sys.platform == "win32"
and build_arch() == "amd64"
):
pytest.xfail("Known failure on windows amd64")
env = os.environ.copy()
env["RELENV_BUILDENV"] = "yes"
env["RELENV_DEBUG"] = "yes"
Expand Down

0 comments on commit 0d5aa83

Please sign in to comment.