Skip to content
Snippets Groups Projects
Commit 7c57848c authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

update doc string of test_install_environment_zlib

parent 4aef16e1
No related branches found
No related tags found
3 merge requests!19Move linux-debian11 into main,!17split one test into three,!9force `subprocess.run` to check return code is 0
...@@ -149,9 +149,6 @@ def test_setup_log_cmd(tmp_path): ...@@ -149,9 +149,6 @@ def test_setup_log_cmd(tmp_path):
def test_install_environment_wrong_toolchain(tmp_path): def test_install_environment_wrong_toolchain(tmp_path):
"""Test exception is raised for non-existing toolchain.""" """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 # Expect an Exception when wrong toolchains are provided
with pytest.raises(Exception): with pytest.raises(Exception):
mod.install_environment( mod.install_environment(
...@@ -175,11 +172,14 @@ def test_install_environment_wrong_mpsd_release(tmp_path): ...@@ -175,11 +172,14 @@ def test_install_environment_wrong_mpsd_release(tmp_path):
def test_install_environment_zlib(tmp_path): def test_install_environment_zlib(tmp_path):
"""Test installation of toolchain.""" """Test installation of toolchain."""
# prepare a test of global generic with only zlib to test the installation # Prepare a test installation of global generic
# prepare dev-23a release # with only zlib to test the installation
# script_dir = tmp_path / "test_global_generic" # This is a long test,
# for actaual installation avoid tmp_path as the lenght of the path is too long # its handy to test this with print statements printed to
# and spack complains # 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") script_dir = Path("/tmp/test_global_generic")
if script_dir.exists(): if script_dir.exists():
shutil.rmtree(script_dir) shutil.rmtree(script_dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment