Commit 59e95b81 authored by Jan Kiene's avatar Jan Kiene
Browse files

do not use pipe in subprocess cmd

parent 3df389a5
Loading
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -75,9 +75,6 @@ def run_check(modes: list, out_formats: list, tests: list, run_fec: bool = True)
        *modes,
        "--oc",
        *out_formats,
        "|",
        "tee",
        CONSOLE_OUT_FILE,
    ]

    print(
@@ -86,9 +83,11 @@ def run_check(modes: list, out_formats: list, tests: list, run_fec: bool = True)
        )
    )

    with open(CONSOLE_OUT_FILE, "a") as f:
        proc = subprocess.Popen(cmd_no_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)
        proc.wait()

    if proc.returncode not in [0, 101]: