diff --git a/tests/test_mpsd_software.py b/tests/test_mpsd_software.py index 6c6c7134cb5aaec6197ff0e846ab7808ded00886..f4564dfa6418a2dfffbd0fe9296ff2c3bec6d53c 100644 --- a/tests/test_mpsd_software.py +++ b/tests/test_mpsd_software.py @@ -169,6 +169,7 @@ def test_record_script_execution_summary(tmp_path): root_dir = tmp_path / "test_prepare_env" mpsd_release_to_test = "dev-23a" + script_version = mod.__version__ if os.path.exists(root_dir / cmd_log_file): initial_bytes = os.path.getsize(cmd_log_file) else: @@ -184,8 +185,10 @@ 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 + lines = f.readlines() + assert "Spack environments branch: dev-23a " in lines[-1] + assert f"MPSD Software manager version: {script_version}" in lines[-2] + def test_install_environment_wrong_package_set(tmp_path):