summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkus-ferrell <116021216+markus-ferrell@users.noreply.github.com>2023-07-18 16:42:57 -0400
committerGitHub <noreply@github.com>2023-07-18 22:42:57 +0200
commitffc283ab8b6b5c7b791e07e358388d3062e4ab44 (patch)
tree33924b2df1c49627fb5bf063257d38dc474759d2
parent3fef586cfb900329a4e10a3ed909e8a8316f6fe6 (diff)
downloadspack-ffc283ab8b6b5c7b791e07e358388d3062e4ab44.tar.gz
spack-ffc283ab8b6b5c7b791e07e358388d3062e4ab44.tar.bz2
spack-ffc283ab8b6b5c7b791e07e358388d3062e4ab44.tar.xz
spack-ffc283ab8b6b5c7b791e07e358388d3062e4ab44.zip
test_clear_failures_success: run on Windows too (#36792)
-rw-r--r--lib/spack/spack/test/installer.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/spack/spack/test/installer.py b/lib/spack/spack/test/installer.py
index a562fafbb0..590754bfaf 100644
--- a/lib/spack/spack/test/installer.py
+++ b/lib/spack/spack/test/installer.py
@@ -596,7 +596,6 @@ def test_dump_packages_deps_errs(install_mockery, tmpdir, monkeypatch, capsys):
assert "Couldn't copy in provenance for cmake" in out
-@pytest.mark.skipif(sys.platform == "win32", reason="Not supported on Windows (yet)")
def test_clear_failures_success(install_mockery):
"""Test the clear_failures happy path."""
@@ -622,7 +621,9 @@ def test_clear_failures_success(install_mockery):
# Ensure the core directory and failure lock file still exist
assert os.path.isdir(spack.store.db._failure_dir)
- assert os.path.isfile(spack.store.db.prefix_fail_path)
+ # Locks on windows are a no-op
+ if sys.platform != "win32":
+ assert os.path.isfile(spack.store.db.prefix_fail_path)
def test_clear_failures_errs(install_mockery, monkeypatch, capsys):