From 831c005f441a55a0ba376768ed4186ea6eeb2e73 Mon Sep 17 00:00:00 2001 From: iamashwin99 <ashwin-kumar.karnad@mpsd.mpg.de> Date: Mon, 19 Jun 2023 14:17:12 +0200 Subject: [PATCH] update tests --- tests/test_mpsd_software.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_mpsd_software.py b/tests/test_mpsd_software.py index 6c6c713..6c9c882 100644 --- a/tests/test_mpsd_software.py +++ b/tests/test_mpsd_software.py @@ -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): -- GitLab