aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorGravatar Abhishek Arya <inferno@chromium.org>2020-11-06 08:09:24 -0800
committerGravatar GitHub <noreply@github.com>2020-11-06 08:09:24 -0800
commitc960b50e0f3060ec4ad16b0d930bcc9cfdb1775d (patch)
treed6fe26893da0ab0e8c2a1f5bbe61b14c6cf642a5 /infra
parent65cd35731fc91fe700902ec6d0a31993bf4fe0ec (diff)
Revert "Use symlink instead of broken -path-equivalence (#4610)" (#4611)
Diffstat (limited to 'infra')
-rwxr-xr-xinfra/base-images/base-runner/coverage10
1 files changed, 5 insertions, 5 deletions
diff --git a/infra/base-images/base-runner/coverage b/infra/base-images/base-runner/coverage
index 492e85a7..d2bd4ddd 100755
--- a/infra/base-images/base-runner/coverage
+++ b/infra/base-images/base-runner/coverage
@@ -37,13 +37,13 @@ done
PROFILE_FILE="$DUMPS_DIR/merged.profdata"
SUMMARY_FILE="$REPORT_PLATFORM_DIR/summary.json"
-# Create path symlink as $SRC directory from the builder is copied into $OUT/$SRC.
-rm -rf $SRC
-ln -s $OUT/src $SRC
+# Use path mapping, as $SRC directory from the builder is copied into $OUT/$SRC.
+PATH_EQUIVALENCE_ARGS="-path-equivalence=/,$OUT"
# It's important to use $COVERAGE_EXTRA_ARGS as the last argument, because it
# can contain paths to source files / directories which are positional args.
-LLVM_COV_COMMON_ARGS="-ignore-filename-regex=.*src/libfuzzer/.* $COVERAGE_EXTRA_ARGS"
+LLVM_COV_COMMON_ARGS="$PATH_EQUIVALENCE_ARGS \
+ -ignore-filename-regex=.*src/libfuzzer/.* $COVERAGE_EXTRA_ARGS"
# Timeout for running a single fuzz target.
TIMEOUT=1h
@@ -164,7 +164,7 @@ llvm-cov export -summary-only $LLVM_COV_ARGS > $SUMMARY_FILE
# Post process HTML report.
coverage_helper -v post_process -src-root-dir=/ -summary-file=$SUMMARY_FILE \
- -output-dir=$REPORT_ROOT_DIR
+ -output-dir=$REPORT_ROOT_DIR $PATH_EQUIVALENCE_ARGS
if [[ -n $HTTP_PORT ]]; then
# Serve the report locally.