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

black

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