Allow wrappers to be missing; quote directory name from make

Co-authored-by: Gilles Peskine <gilles.peskine@arm.com>
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2024-02-26 17:27:18 +00:00 committed by GitHub
parent e03088b29e
commit a9e8dbed14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 9 deletions

View File

@ -222,14 +222,8 @@ setup_quiet_wrappers()
# unless there is an error. This reduces logging overhead in the CI.
#
# Note that the cmake wrapper breaks unless we use an absolute path here.
export PATH=${PWD}/tests/scripts/quiet:$PATH
if [[ ! -x ${PWD}/tests/scripts/quiet/make ]]; then
echo "can't find quiet/make"
exit 1
fi
if [[ ! -x ${PWD}/tests/scripts/quiet/cmake ]]; then
echo "can't find quiet/cmake"
exit 1
if [[ -e ${PWD}/tests/scripts/quiet ]]; then
export PATH=${PWD}/tests/scripts/quiet:$PATH
fi
}

View File

@ -15,4 +15,4 @@ export NO_SILENCE=" --version | test "
export TOOL="make"
exec $(dirname "$0")/quiet "$@"
exec "$(dirname "$0")/quiet" "$@"