From c2e9dac28f3ba4ca499513eaa18fa6e4c6525408 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 29 Aug 2025 13:23:33 +0200 Subject: [PATCH] Expand on why and how we bypass the quiet wrapper Signed-off-by: Gilles Peskine --- tests/scripts/components-build-system.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/scripts/components-build-system.sh b/tests/scripts/components-build-system.sh index f9a71a1d48..c6f29d6ec1 100644 --- a/tests/scripts/components-build-system.sh +++ b/tests/scripts/components-build-system.sh @@ -41,8 +41,19 @@ component_build_make_no_gen_files () { sleep 1 git ls-files -z | xargs -0 touch -- - # Bypass "quiet" make wrapper + # The setup code of all.sh sets up a "quiet" wrapper for `make`. + # We want to bypass it and just use the normal make program, + # so that this test mimics a normal user's platform. + # And anyway we need to bypass it because it wouldn't work without bash + # and other tools in the $PATH. + # The wrapper is used because the setup code adds the + # `.../framework/scripts/quiet` directlry to the beginning of the $PATH. + # So here we remove that. shopt -s extglob + # Strip off all entries in $PATH that ends with `/quiet`. (This misses + # the very last element, but we know we'll never need to remove the last + # element, since we just want to remove the wrapper directory that comes + # before the normal programs.) PATH=${PATH//*([!:])\/quiet:/} # Locate the minimum programs needed for the build: ${CC} and ${AR}.