summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormarkus-ferrell <116021216+markus-ferrell@users.noreply.github.com>2023-04-21 08:18:06 -0400
committerGitHub <noreply@github.com>2023-04-21 14:18:06 +0200
commite77b1da772eaefb06a8228971426ff3838dc4737 (patch)
tree28745e62dafe2430339f1ea079ce7946d4be98da /lib
parente1e8d3b66ec119cc3b9689061c96ea63138b1bb0 (diff)
downloadspack-e77b1da772eaefb06a8228971426ff3838dc4737.tar.gz
spack-e77b1da772eaefb06a8228971426ff3838dc4737.tar.bz2
spack-e77b1da772eaefb06a8228971426ff3838dc4737.tar.xz
spack-e77b1da772eaefb06a8228971426ff3838dc4737.zip
Enable test suite tests on windows (#36966)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/test_suite.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/spack/spack/test/test_suite.py b/lib/spack/spack/test/test_suite.py
index 3bebfd3da5..d2ed898728 100644
--- a/lib/spack/spack/test/test_suite.py
+++ b/lib/spack/spack/test/test_suite.py
@@ -10,8 +10,6 @@ import pytest
import spack.install_test
import spack.spec
-pytestmark = pytest.mark.skipif(sys.platform == "win32", reason="Tests fail on Windows")
-
def _true(*args, **kwargs):
"""Generic monkeypatch function that always returns True."""
@@ -142,6 +140,7 @@ def test_test_spec_run_once(mock_packages, install_mockery, mock_test_stage):
test_suite()
+@pytest.mark.skipif(sys.platform == "win32", reason="Cannot find echo executable")
def test_test_spec_passes(mock_packages, install_mockery, mock_test_stage, monkeypatch):
spec = spack.spec.Spec("simple-standalone-test").concretized()
monkeypatch.setattr(spack.spec.Spec, "installed", _true)