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

black and reduce line length in comments

parent f7e78df0
No related branches found
No related tags found
1 merge request!77Skip logging script commit hash
Pipeline #372723 passed
......@@ -580,9 +580,9 @@ def record_script_execution_summary(
"""
# Write to the log file with the following format
# --------------------------------------------------
# 2023-06-20T15:30:37.965370, src/mpsd_software_manager/mpsd_software.py prepare dev-23a
# MPSD Software manager version: 2023.6.16
# Spack environments branch: dev-23a (commit hash: 8eac43476b2fd9a3a044f5562f3f7c2bccfe384a)
# 2023-06-20T15:30:37.965370, mpsd_software prepare dev-23a
# MPSD Software manager version: 2023.6.16
# Spack environments branch: dev-23a (commit hash: abcdefg)
# MSGs
with os_chdir(root_dir):
with open(config_vars["cmd_log_file"], "a") as f:
......@@ -603,9 +603,7 @@ def record_script_execution_summary(
# Write to log file
f.write(f"{datetime.datetime.now().isoformat()}, {cmd_line}\n")
# logs script version
f.write(
f"MPSD Software manager version: {__version__}\n"
)
f.write(f"MPSD Software manager version: {__version__}\n")
f.write(
f"Spack environments branch: {spe_branch} "
f"(commit hash: {spe_commit_hash})\n"
......
......@@ -190,7 +190,6 @@ def test_record_script_execution_summary(tmp_path):
assert f"MPSD Software manager version: {script_version}" in lines[-2]
def test_install_environment_wrong_package_set(tmp_path):
"""Test exception is raised for non-existing package_set."""
# exits with exit code 1 when wrong package_sets are provided
......
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