[infra] Save logs when generating code coverage for Go projects (#2817, #2714). (#4683)

This commit is contained in:
Max Moroz 2020-11-20 14:02:36 -08:00 committed by GitHub
parent e7921e7795
commit e534f4fecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}