From d6e4c28323f438a264758a1a4a9576e32d8f53eb Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Tue, 18 Feb 2020 11:26:22 -0800 Subject: [PATCH] Report full untruncated log upon failure. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- fuzzers/run_fuzzer.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/fuzzers/run_fuzzer.py b/fuzzers/run_fuzzer.py index e3fb7a18..ff6541a4 100755 --- a/fuzzers/run_fuzzer.py +++ b/fuzzers/run_fuzzer.py @@ -622,14 +622,23 @@ def run_fuzzer(fuzzer_name, fuzzer_dir, fuzzer_logdir, logger, will_retry): # Log the last 10,000 lines of stderr on a failure log( """\ -Failed @ {time_end} with exit code: {retcode} -------------------------------------------------------------------------- -{error_log} +!Failed! @ {time_end} with exit code: {retcode} +-------------------------------------------------------------------------- +- STDOUT: - +-------------------------------------------------------------------------- +{stdout_log} +-------------------------------------------------------------------------- +- STDERR: - +-------------------------------------------------------------------------- +{stderr_log} +-------------------------------------------------------------------------- +!Failed! @ {time_end} with exit code: {retcode} -------------------------------------------------------------------------- -Failed @ {time_end} with exit code: {retcode} """, retcode=retcode, - error_log=error_log, + stdout_log=open(fuzzer_stdout).read(), + stderr_log=open(fuzzer_stderr).read(), time_end=time_end.isoformat()) else: # Log the last 100 lines of a successful run