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

Merge branch '222-logs-in-sanitizer-jobs-do-not-get-collected' into 'main'

Resolve "Logs in sanitizer jobs do not get collected"

See merge request !300
parents 7a7e5164 2983ae29
Loading
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ def run_check(modes: list, out_formats: list, tests: list, run_fec: bool = True)
        )
    )

    with open(CONSOLE_OUT_FILE, "a") as f:
    with open(CONSOLE_OUT_FILE, "w") as f:
        proc = subprocess.Popen(
            cmd_no_fec, stdout=subprocess.PIPE, stderr=subprocess.PIPE
        )
@@ -174,9 +174,13 @@ def run_check(modes: list, out_formats: list, tests: list, run_fec: bool = True)
        )
    )

    proc = subprocess.Popen(cmd_fec, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    with open(CONSOLE_OUT_FILE, "a") as f:
        proc = subprocess.Popen(
            cmd_fec, stdout=subprocess.PIPE, stderr=subprocess.PIPE
        )
        for c in iter(lambda: proc.stdout.read(1), b""):
            sys.stdout.buffer.write(c)
            f.write(c.decode("utf8"))
        proc.wait()

    returncode_fec = proc.returncode