rust coverage: broader definition for remaps (#6595)

As shown by opensk, rust files can be in a deeper directory
This commit is contained in:
Catena cyber 2021-10-19 22:50:08 +02:00 committed by GitHub
parent 464b4a9a76
commit b771fe7914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ then
while read i; do while read i; do
export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix $i=$fuzz_src_abspath/$i" export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix $i=$fuzz_src_abspath/$i"
# Bash while syntax so that we modify RUSTFLAGS in main shell instead of a subshell. # Bash while syntax so that we modify RUSTFLAGS in main shell instead of a subshell.
done <<< "$(ls */*.rs | cut -d/ -f1 | uniq)" done <<< "$(find . -name "*.rs" | cut -d/ -f2 | uniq)"
# we do not want to trigger debug assertions and stops # we do not want to trigger debug assertions and stops
export RUSTFLAGS="$RUSTFLAGS -C debug-assertions=no" export RUSTFLAGS="$RUSTFLAGS -C debug-assertions=no"
# do not optimize with --release, leading to Malformed instrumentation profile data # do not optimize with --release, leading to Malformed instrumentation profile data