diff --git a/tests.py b/tests.py index 01935e73c7987621c1f22d4e5c5cb9bb3ce80d60..4b4b215095ce1fbb7c94aa30a8c88544ded60786 100644 --- a/tests.py +++ b/tests.py @@ -149,9 +149,6 @@ def test_setup_log_cmd(tmp_path): def test_install_environment_wrong_toolchain(tmp_path): """Test exception is raised for non-existing toolchain.""" - # This is a long test, its handy to test this with print statements printed to - # stdout, use: - # pytest -s # Expect an Exception when wrong toolchains are provided with pytest.raises(Exception): mod.install_environment( @@ -175,11 +172,14 @@ def test_install_environment_wrong_mpsd_release(tmp_path): def test_install_environment_zlib(tmp_path): """Test installation of toolchain.""" - # prepare a test of global generic with only zlib to test the installation - # prepare dev-23a release - # script_dir = tmp_path / "test_global_generic" - # for actaual installation avoid tmp_path as the lenght of the path is too long - # and spack complains + # Prepare a test installation of global generic + # with only zlib to test the installation + # This is a long test, + # its handy to test this with print statements printed to + # stdout, use: + # pytest -s + # for this installation avoid tmp_path as + # the length of the path becomes too long and spack complains script_dir = Path("/tmp/test_global_generic") if script_dir.exists(): shutil.rmtree(script_dir)