Skip to content
Snippets Groups Projects

Rename spack env branch names in our script

Merged Ashwin Kumar Karnad requested to merge rename-spack-env-branches into main
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -146,7 +146,7 @@ def test_prepare_environment(tmp_path):
capture_output=True,
)
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']
assert isinstance(result, list)
@@ -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
with open(root_dir / cmd_log_file, "r") as f:
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):
Loading