fix parser

This commit is contained in:
Yakov Olkhovskiy 2024-10-11 03:11:39 +00:00
parent 8f9ccdf69c
commit 85a6bb1d1f

View File

@ -16,9 +16,9 @@ FUZZER_ARGS = os.getenv("FUZZER_ARGS", "")
def report(source: str, reason: str, call_stack: list, test_unit: str):
print(f"########### REPORT: {source} {reason} {test_unit}")
print("".join(call_stack))
print("########### END OF REPORT ###########")
logging.info("########### REPORT: %s %s %s", source, reason, test_unit)
logging.info("".join(call_stack))
logging.info("########### END OF REPORT ###########")
# pylint: disable=unused-argument
@ -157,7 +157,7 @@ def run_fuzzer(fuzzer: str, timeout: int):
)
except subprocess.CalledProcessError as e:
# print("Command failed with error:", e)
print("Stderr output: ", e.stderr)
logging.info("Stderr output: %s", e.stderr)
process_error(e.stderr)
except subprocess.TimeoutExpired as e:
logging.info("Timeout for %s", cmd_line)