From 84f25e0e54369d8bef5e26b2171715b798b3db0e Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Fri, 17 Jan 2020 04:27:58 -0800 Subject: [PATCH] Remove limit in the log length in fuzz_opt.py It is convenient to have the full command when debugging fuzzing errors. The fuzzer sometimes fails before running `wasm-reduce` and being able to reproduce the command right away from the log is very handy in that case. --- scripts/fuzz_opt.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py index b77d8e9b4d1..b07dafe5347 100644 --- a/scripts/fuzz_opt.py +++ b/scripts/fuzz_opt.py @@ -40,8 +40,6 @@ INPUT_SIZE_LIMIT = 150 * 1024 -LOG_LIMIT = 125 - # utilities @@ -59,12 +57,12 @@ def random_size(): def run(cmd): - print(' '.join(cmd)[:LOG_LIMIT]) + print(' '.join(cmd)) return subprocess.check_output(cmd) def run_unchecked(cmd): - print(' '.join(cmd)[:LOG_LIMIT]) + print(' '.join(cmd)) return subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[0]