aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/base-images
diff options
context:
space:
mode:
authorGravatar Max Moroz <mmoroz@chromium.org>2019-10-14 09:34:30 -0700
committerGravatar GitHub <noreply@github.com>2019-10-14 09:34:30 -0700
commit5943ef19d4c98efde77b0509ac364e73f7e4c7b3 (patch)
tree4c88be1d095827f5ff8068feab1463a93eae7979 /infra/base-images
parentc805b4963634340d87572d451101d183d9e135c1 (diff)
Reland "[infra] Use fuzz target basename in the coverage script." (#2903) (#2944)
Diffstat (limited to 'infra/base-images')
-rwxr-xr-xinfra/base-images/base-runner/coverage4
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/base-images/base-runner/coverage b/infra/base-images/base-runner/coverage
index b0634321..acf77032 100755
--- a/infra/base-images/base-runner/coverage
+++ b/infra/base-images/base-runner/coverage
@@ -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