Enable test suite tests on windows (#36966)

This commit is contained in:
markus-ferrell
2023-04-21 08:18:06 -04:00
committed by GitHub
parent e1e8d3b66e
commit e77b1da772

View File

@@ -10,8 +10,6 @@
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)