From f666158d8c00748ea4b72a6de036fc0f9fc46e7e Mon Sep 17 00:00:00 2001 From: vyzaldysanchez Date: Wed, 7 Feb 2024 10:58:09 -0400 Subject: [PATCH] Logs failing fuzz inputs --- tools/bin/go_core_fuzz | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/bin/go_core_fuzz b/tools/bin/go_core_fuzz index 3a30097f7d2..2ed8a6778a8 100755 --- a/tools/bin/go_core_fuzz +++ b/tools/bin/go_core_fuzz @@ -6,9 +6,8 @@ SCRIPT_PATH=`dirname "$0"`; SCRIPT_PATH=`eval "cd \"$SCRIPT_PATH\" && pwd"` OUTPUT_FILE=${OUTPUT_FILE:-"./output.txt"} USE_TEE="${USE_TEE:-true}" -echo "Failed tests and panics: ---------------------" +echo "Failed fuzz tests and panics: ---------------------" echo "" -GO_LDFLAGS=$(bash tools/bin/ldflags) use_tee() { if [ "$USE_TEE" = "true" ]; then tee "$@" @@ -29,8 +28,9 @@ fi echo "Exit code: $EXITCODE" if [[ $EXITCODE != 0 ]]; then - echo "Encountered test failures." + echo "Encountered fuzz test failures. Logging all failing fuzz inputs:" + find . -type f|fgrep '/testdata/fuzz/'|while read f; do echo $f; cat $f; done else - echo "All tests passed!" + echo "All fuzz tests passed!" fi exit $EXITCODE