mirror of https://github.com/google/oss-fuzz.git
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:
parent
e48e615124
commit
7797279c27
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue