infra: base-builder: compile: wrap find names in quotes (#8943)

Wrap wildcards in quotes as otherwise the script will autocomplete if
there is a e.g. .json file in the current directory. This causes the
wrong files to be moved, which means `all_cov.json` will not be moved to
the introspector folder and thus wrong (no) coverage data will be used.

This error happens in e.g. g-api-auth-library-python
This commit is contained in:
DavidKorczynski 2022-11-08 23:24:41 +01:00 committed by GitHub
parent e48e615124
commit 7797279c27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -220,8 +220,8 @@ if [ "$SANITIZER" = "introspector" ]; then
# Move coverage report.
if [ -d "$OUT/textcov_reports" ]
then
find $OUT/textcov_reports/ -name *.covreport -exec cp {} $SRC/inspector/ \;
find $OUT/textcov_reports/ -name *.json -exec cp {} $SRC/inspector/ \;
find $OUT/textcov_reports/ -name "*.covreport" -exec cp {} $SRC/inspector/ \;
find $OUT/textcov_reports/ -name "*.json" -exec cp {} $SRC/inspector/ \;
fi
cd $SRC/inspector