[juju] Fix broken coverage build (#6856)

This commit is contained in:
AdamKorcz 2021-11-18 22:19:44 +00:00 committed by GitHub
parent 6a16b2856d
commit 230d65b070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 7 deletions

View File

@ -15,11 +15,10 @@
#
################################################################################
go mod download
# A fuzzer in this dependency is broken:
find /root/go/pkg/mod/github.com/aws/aws-sdk-go-v2 -name "*fuzz.go" -exec rm -rf {} \;
# Compile fuzzer:
mv $SRC/storage_fuzzer.go $SRC/juju/storage/
if [[ $SANITIZER = *coverage* ]]; then
compile_go_fuzzer github.com/juju/juju/storage Fuzz storage_fuzzer
exit 0
fi
compile_go_fuzzer ./storage Fuzz storage_fuzzer
compile_go_fuzzer github.com/juju/juju/storage Fuzz storage_fuzzer