summaryrefslogtreecommitdiff
path: root/lib/spack/spack/test/cmd/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/test/cmd/test.py')
-rw-r--r--lib/spack/spack/test/cmd/test.py25
1 files changed, 3 insertions, 22 deletions
diff --git a/lib/spack/spack/test/cmd/test.py b/lib/spack/spack/test/cmd/test.py
index ff0dbad16b..ad631db899 100644
--- a/lib/spack/spack/test/cmd/test.py
+++ b/lib/spack/spack/test/cmd/test.py
@@ -18,9 +18,10 @@ from spack.main import SpackCommand
install = SpackCommand('install')
spack_test = SpackCommand('test')
+pytestmark = pytest.mark.skipif(sys.platform == "win32",
+ reason="does not run on windows")
+
-@pytest.mark.skipif(sys.platform == "win32",
- reason='Not supported on Windows (yet)')
def test_test_package_not_installed(
tmpdir, mock_packages, mock_archive, mock_fetch, config,
install_mockery_mutable_config, mock_test_stage):
@@ -42,8 +43,6 @@ def test_test_dirty_flag(arguments, expected):
assert args.dirty == expected
-@pytest.mark.skipif(sys.platform == "win32",
- reason='Not supported on Windows (yet)')
def test_test_dup_alias(
mock_test_stage, mock_packages, mock_archive, mock_fetch,
install_mockery_mutable_config, capfd):
@@ -62,8 +61,6 @@ def test_test_dup_alias(
assert "already exists" in out
-@pytest.mark.skipif(sys.platform == "win32",
- reason='Not supported on Windows (yet)')
def test_test_output(mock_test_stage, mock_packages, mock_archive, mock_fetch,
install_mockery_mutable_config):
"""Ensure output printed from pkgs is captured by output redirection."""
@@ -89,8 +86,6 @@ def test_test_output(mock_test_stage, mock_packages, mock_archive, mock_fetch,
assert "FAILED" not in output
-@pytest.mark.skipif(sys.platform == "win32",
- reason='FetchError: All fetchers failed')
def test_test_output_on_error(
mock_packages, mock_archive, mock_fetch, install_mockery_mutable_config,
capfd, mock_test_stage
@@ -104,8 +99,6 @@ def test_test_output_on_error(
assert "Command exited with status 1" in out
-@pytest.mark.skipif(sys.platform == "win32",
- reason='FetchError: All fetchers failed')
def test_test_output_on_failure(
mock_packages, mock_archive, mock_fetch, install_mockery_mutable_config,
capfd, mock_test_stage
@@ -118,8 +111,6 @@ def test_test_output_on_failure(
assert "TestFailure" in out
-@pytest.mark.skipif(sys.platform == "win32",
- reason='FetchError: All fetchers failed')
def test_show_log_on_error(
mock_packages, mock_archive, mock_fetch,
install_mockery_mutable_config, capfd, mock_test_stage
@@ -133,8 +124,6 @@ def test_show_log_on_error(
assert mock_test_stage in out
-@pytest.mark.skipif(sys.platform == "win32",
- reason='FetchError: All fetchers failed')
@pytest.mark.usefixtures(
'mock_packages', 'mock_archive', 'mock_fetch',
'install_mockery_mutable_config'
@@ -168,8 +157,6 @@ def test_junit_output_with_failures(tmpdir, mock_test_stage, pkg_name, msgs):
assert msg in content
-@pytest.mark.skipif(sys.platform == "win32",
- reason='FetchError: All fetchers failed')
def test_cdash_output_test_error(
tmpdir, mock_fetch, install_mockery_mutable_config, mock_packages,
mock_archive, mock_test_stage, capfd):
@@ -189,8 +176,6 @@ def test_cdash_output_test_error(
assert 'FAILED: Command exited with status 1' in content
-@pytest.mark.skipif(sys.platform == "win32",
- reason='FetchError: All fetchers failed')
def test_cdash_upload_clean_test(
tmpdir, mock_fetch, install_mockery_mutable_config, mock_packages,
mock_archive, mock_test_stage):
@@ -236,8 +221,6 @@ def test_test_list_all(mock_packages):
])
-@pytest.mark.skipif(sys.platform == "win32",
- reason='FetchError: All fetchers failed')
def test_test_list(
mock_packages, mock_archive, mock_fetch, install_mockery_mutable_config
):
@@ -257,8 +240,6 @@ def test_has_test_method_fails(capsys):
assert 'is not a class' in captured
-@pytest.mark.skipif(sys.platform == "win32",
- reason='Not supported on Windows (yet)')
def test_hash_change(mock_test_stage, mock_packages, mock_archive, mock_fetch,
install_mockery_mutable_config):
"""Ensure output printed from pkgs is captured by output redirection."""