diff --git a/tests/softhsm_setup.py b/tests/softhsm_setup.py index 86c613cb..7b9417f4 100644 --- a/tests/softhsm_setup.py +++ b/tests/softhsm_setup.py @@ -123,18 +123,22 @@ def setup() -> None: with open(softhsm_conf, 'w') as f: if softhsm_version == 2: softhsm_db = _temp_dir() - f.write(f""" + f.write( + f""" # Generated by test directories.tokendir = {softhsm_db} objectstore.backend = file log.level = DEBUG -""") +""" + ) else: softhsm_db = _temp_file() - f.write(f""" + f.write( + f""" # Generated by test 0:{softhsm_db} -""") +""" + ) logging.debug('Initializing the token') out, err = run_cmd(