From e534f4fecc7c0992b105a79123ec97bb55ae2396 Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Fri, 20 Nov 2020 14:02:36 -0800 Subject: [PATCH] [infra] Save logs when generating code coverage for Go projects (#2817, #2714). (#4683) --- infra/base-images/base-runner/coverage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/base-images/base-runner/coverage b/infra/base-images/base-runner/coverage index 912b85bd7..411422763 100755 --- a/infra/base-images/base-runner/coverage +++ b/infra/base-images/base-runner/coverage @@ -118,7 +118,7 @@ function run_go_fuzz_target { echo "Running go target $target" export FUZZ_CORPUS_DIR="/corpus/${target}/" export FUZZ_PROFILE_NAME="$DUMPS_DIR/$target.perf" - bash $OUT/$target $DUMPS_DIR/$target.profdata + bash $OUT/$target $DUMPS_DIR/$target.profdata &> $LOGS_DIR/$target.log $SYSGOPATH/bin/gocovsum $DUMPS_DIR/$target.profdata > $FUZZER_STATS_DIR/$target.json cd $OUT }