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

update tests

parent 76a015d3
No related branches found
No related tags found
1 merge request!74Rename spack env branch names in our script
Pipeline #372299 passed
This commit is part of merge request !74. Comments created here will be created in the context of that merge request.
...@@ -146,7 +146,7 @@ def test_prepare_environment(tmp_path): ...@@ -146,7 +146,7 @@ def test_prepare_environment(tmp_path):
capture_output=True, capture_output=True,
) )
git_branch_stdout = git_branch_output_raw.stdout.decode("utf-8") git_branch_stdout = git_branch_output_raw.stdout.decode("utf-8")
assert f"* {mpsd_release_to_test}" in git_branch_stdout assert f"* releases/{mpsd_release_to_test}" in git_branch_stdout
# check that result is a list and contains atleast ['global','foss2021a-mpi'] # check that result is a list and contains atleast ['global','foss2021a-mpi']
assert isinstance(result, list) assert isinstance(result, list)
...@@ -185,7 +185,7 @@ def test_record_script_execution_summary(tmp_path): ...@@ -185,7 +185,7 @@ def test_record_script_execution_summary(tmp_path):
# Check that the log file has "Spack environments branch: dev-23a " in the last line # Check that the log file has "Spack environments branch: dev-23a " in the last line
with open(root_dir / cmd_log_file, "r") as f: with open(root_dir / cmd_log_file, "r") as f:
last_line = f.readlines()[-1] last_line = f.readlines()[-1]
assert "Spack environments branch: dev-23a " in last_line assert "Spack environments branch: releases/dev-23a" in last_line
def test_install_environment_wrong_package_set(tmp_path): def test_install_environment_wrong_package_set(tmp_path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment