aboutsummaryrefslogtreecommitdiff
path: root/infra
diff options
context:
space:
mode:
authorCatena cyber <35799796+catenacyber@users.noreply.github.com>2021-03-19 14:34:21 +0100
committerGitHub <noreply@github.com>2021-03-19 06:34:21 -0700
commit58d5848b0ffc1534b76aee05d41351b7bdb005c3 (patch)
treeaf5b4cced43c1c1b49f58546a9006ebe7698d3ab /infra
parent8f4d33b6ccd438dd30cc3b235f442b5bb4424198 (diff)
downloadoss-fuzz-58d5848b0ffc1534b76aee05d41351b7bdb005c3.tar.gz
Fix typo in path equilavence for golang coverage (#5444)
Diffstat (limited to 'infra')
-rwxr-xr-xinfra/base-images/base-builder/compile_go_fuzzer2
1 files changed, 1 insertions, 1 deletions
diff --git a/infra/base-images/base-builder/compile_go_fuzzer b/infra/base-images/base-builder/compile_go_fuzzer
index a8dafc473..2342800fb 100755
--- a/infra/base-images/base-builder/compile_go_fuzzer
+++ b/infra/base-images/base-builder/compile_go_fuzzer
@@ -45,7 +45,7 @@ if [[ $SANITIZER = *coverage* ]]; then
fuzzed_repo=`echo $path | cut -d/ -f-3`
abspath_repo=`go list -m $tags -f {{.Dir}} $fuzzed_repo || go list $tags -f {{.Dir}} $fuzzed_repo`
# give equivalence to absolute paths in another file, as go test -cover uses golangish pkg.Dir
- echo "s=$fuzzed_repo"="$abspath_repo$"= > $OUT/$fuzzer.gocovpath
+ echo "s=$fuzzed_repo"="$abspath_repo"= > $OUT/$fuzzer.gocovpath
go test -run Test${function}Corpus -v $tags -coverpkg $fuzzed_repo/... -c -o $OUT/$fuzzer $path
else
# Compile and instrument all Go files relevant to this fuzz target.