Commit fa38391a authored by Jan Kiene's avatar Jan Kiene
Browse files

Merge branch '143-failed-sanitizer-test-on-main' into 'main'

Resolve "Failed sanitizer test on main"

See merge request !180
parents 9777c8a6 65f97302
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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
+11 −3
Original line number Diff line number Diff line
@@ -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)))