diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a866a166e346bcb419ae2f82d58714de829f9a04..9529be0e3cdb8d5d3ff6aaa5152a8b0826164687 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -481,7 +481,8 @@ codec-comparison-on-main-push: when: always paths: - ep_015.g192 - - "CLANG*/logs" + # second wildcard is necessary to get encoder and no-PLC run logs + - "CLANG*/logs*" sanitizer-test-mono: extends: .sanitizer-test-template diff --git a/ci/run_scheduled_sanitizer_test.py b/ci/run_scheduled_sanitizer_test.py index 1ffaaf55a806b037d97c907b9079b6fa4b5e138f..4f3cd25c0baff2c3f30f3c59a0b401b4ad718fb3 100644 --- a/ci/run_scheduled_sanitizer_test.py +++ b/ci/run_scheduled_sanitizer_test.py @@ -93,12 +93,20 @@ def run_check(modes: list, out_formats: list, tests: list, run_fec: bool = True) subprocess.call(GENPATT_CMD.split()) # cleanup to avoid script errors - # we want "logs" and "dec" subfolders to be empty -> delete and recreate them - cleanup_folders = ["logs", "dec"] + # we want "logs" and "dec" subfolders to be empty -> delete "dec" and rename "log" + # to keep the log files from the first run with no frame losses + folders_to_delete = ["dec"] + folders_to_backup = ["logs"] for t in tests: - for fol in cleanup_folders: + for fol in folders_to_delete: for fi in pathlib.Path(t).joinpath(fol).iterdir(): fi.unlink() + for fol in folders_to_backup: + path = pathlib.Path(t).joinpath(fol) + new_name = pathlib.Path(str(path) + "_noPLC") + path.rename(new_name) + # need empty log folder to avoid crashes + path.mkdir() cmd_fec = cmd_no_fec + ["--decoder_only", "-f", EP_FILE] print("======== Script command line WITH plc: ========\n{}".format(" ".join(cmd_no_fec)))