From b771fe7914a50597a92297747d8829cf8f0e4997 Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Tue, 19 Oct 2021 22:50:08 +0200 Subject: [PATCH] rust coverage: broader definition for remaps (#6595) As shown by opensk, rust files can be in a deeper directory --- infra/base-images/base-builder/cargo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/base-images/base-builder/cargo b/infra/base-images/base-builder/cargo index c60c7611b..4376cfa5d 100755 --- a/infra/base-images/base-builder/cargo +++ b/infra/base-images/base-builder/cargo @@ -39,7 +39,7 @@ then while read i; do 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. - 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 export RUSTFLAGS="$RUSTFLAGS -C debug-assertions=no" # do not optimize with --release, leading to Malformed instrumentation profile data