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

correction in collectionscript and add printouts

parent f5e913a8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -57,6 +57,9 @@ def collect_for_sanitizer_test(file):
    with open(file) as f:
        console_log = f.readlines()

    print("CONSOLE_LOG:")
    print(console_log)

    files_to_archive_noPLC = find_failed_files_for_sanitizer_test(
        console_log, "logs_noPLC"
    )
+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