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

black

parent 5145b063
No related branches found
No related tags found
2 merge requests!39Split logfile templates usage,!29Restructure log location
Pipeline #370251 passed
...@@ -51,6 +51,7 @@ config_vars = { ...@@ -51,6 +51,7 @@ config_vars = {
"spack_environments_repo": "https://gitlab.gwdg.de/mpsd-cs/spack-environments.git", "spack_environments_repo": "https://gitlab.gwdg.de/mpsd-cs/spack-environments.git",
} }
def create_log_file_names( def create_log_file_names(
mpsd_release: str, mpsd_release: str,
mpsd_microarch: str, mpsd_microarch: str,
...@@ -82,7 +83,7 @@ def create_log_file_names( ...@@ -82,7 +83,7 @@ def create_log_file_names(
only install and remove are valid for build log file. only install and remove are valid for build log file.
toolchain : str toolchain : str
toolchain name (only for build log file) toolchain name (only for build log file)
Returns Returns
------- -------
str str
...@@ -101,12 +102,13 @@ def create_log_file_names( ...@@ -101,12 +102,13 @@ def create_log_file_names(
log_template = config_vars["installer_log_template"] log_template = config_vars["installer_log_template"]
return log_template.substitute( return log_template.substitute(
mpsd_release=mpsd_release, mpsd_release=mpsd_release,
mpsd_microarch=mpsd_microarch, mpsd_microarch=mpsd_microarch,
date=date, date=date,
action=action, action=action,
toolchain=toolchain, toolchain=toolchain,
) )
def log_metadata(key: str, value: str) -> None: def log_metadata(key: str, value: str) -> None:
"""Log metadata to the log file. """Log metadata to the log file.
......
...@@ -383,7 +383,6 @@ def test_metadata_logging(tmp_path): ...@@ -383,7 +383,6 @@ def test_metadata_logging(tmp_path):
assert len(read_dict) == len(keys) assert len(read_dict) == len(keys)
def test_create_log_file_names(): def test_create_log_file_names():
"""Test that the log file names are created correctly.""" """Test that the log file names are created correctly."""
create_log_file_names = mod.create_log_file_names create_log_file_names = mod.create_log_file_names
......
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