Reland "[infra] Use fuzz target basename in the coverage script." (#2903) (#2944)

This commit is contained in:
Max Moroz 2019-10-14 09:34:30 -07:00 committed by GitHub
parent c805b49636
commit 5943ef19d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ cd $OUT
if (( $# > 0 )); then
FUZZ_TARGETS="$@"
else
FUZZ_TARGETS="$(find . -maxdepth 1 -type f -executable)"
FUZZ_TARGETS="$(find . -maxdepth 1 -type f -executable -printf '%P\n')"
fi
DUMPS_DIR="$OUT/dumps"
@ -77,7 +77,7 @@ function run_fuzz_target {
local args="-merge=1 -timeout=100 -close_fd_mask=3 $corpus_dummy $corpus_real"
export LLVM_PROFILE_FILE=$profraw_file
timeout $TIMEOUT $target $args &> $LOGS_DIR/$target.log
timeout $TIMEOUT $OUT/$target $args &> $LOGS_DIR/$target.log
if (( $? != 0 )); then
echo "Error occured while running $target:"
cat $LOGS_DIR/$target.log