diff options
author | Nicole C <48625123+nicolecheetham@users.noreply.github.com> | 2024-07-10 19:52:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-10 16:52:01 -0700 |
commit | 2eb566b884b9fa89dc3e9c1f7eeb5c21618a1817 (patch) | |
tree | 2f7313802b3fec0eb60e5b0dba2e756d03333312 | |
parent | a7444873b9fa9a5837ba0a0853845b6691859051 (diff) | |
download | spack-2eb566b884b9fa89dc3e9c1f7eeb5c21618a1817.tar.gz spack-2eb566b884b9fa89dc3e9c1f7eeb5c21618a1817.tar.bz2 spack-2eb566b884b9fa89dc3e9c1f7eeb5c21618a1817.tar.xz spack-2eb566b884b9fa89dc3e9c1f7eeb5c21618a1817.zip |
Spack on Windows: update dev_build tests to run on Windows (#45039)
-rw-r--r-- | lib/spack/spack/test/cmd/dev_build.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/spack/spack/test/cmd/dev_build.py b/lib/spack/spack/test/cmd/dev_build.py index 67d83ddd5f..16252b1af7 100644 --- a/lib/spack/spack/test/cmd/dev_build.py +++ b/lib/spack/spack/test/cmd/dev_build.py @@ -20,10 +20,7 @@ dev_build = SpackCommand("dev-build") install = SpackCommand("install") env = SpackCommand("env") -pytestmark = [ - pytest.mark.not_on_windows("does not run on windows"), - pytest.mark.disable_clean_stage_check, -] +pytestmark = [pytest.mark.disable_clean_stage_check] def test_dev_build_basics(tmpdir, install_mockery): @@ -96,7 +93,7 @@ def test_dev_build_until_last_phase(tmpdir, install_mockery): assert os.path.exists(str(tmpdir)) -def test_dev_build_before_until(tmpdir, install_mockery, capsys): +def test_dev_build_before_until(tmpdir, install_mockery): spec = spack.spec.Spec(f"dev-build-test-install@0.0.0 dev_path={tmpdir}").concretized() with tmpdir.as_cwd(): @@ -129,7 +126,7 @@ def test_dev_build_drop_in(tmpdir, mock_packages, monkeypatch, install_mockery, monkeypatch.setattr(os, "execvp", print_spack_cc) with tmpdir.as_cwd(): output = dev_build("-b", "edit", "--drop-in", "sh", "dev-build-test-install@0.0.0") - assert "lib/spack/env" in output + assert os.path.join("lib", "spack", "env") in output def test_dev_build_fails_already_installed(tmpdir, install_mockery): |