From fa3875982360c0045b440738f66443714b0c9011 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Wed, 18 Feb 2026 10:15:47 +0100 Subject: [PATCH] ci: Require $FILE_ENV The ci fails when $FILE_ENV is not set, so fail early with a clearer error message by setting nounset: > bash: FILE_ENV: unbound variable --- ci/test/00_setup_env.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ci/test/00_setup_env.sh b/ci/test/00_setup_env.sh index 8d9a16ab784..39ab931a728 100755 --- a/ci/test/00_setup_env.sh +++ b/ci/test/00_setup_env.sh @@ -6,7 +6,7 @@ export LC_ALL=C.UTF-8 -set -o errexit -o pipefail -o xtrace +set -o errexit -o nounset -o pipefail -o xtrace # The source root dir, usually from git, usually read-only. # The ci system copies this folder. @@ -24,11 +24,8 @@ export DEPENDS_DIR=${DEPENDS_DIR:-$BASE_ROOT_DIR/depends} export BASE_SCRATCH_DIR=${BASE_SCRATCH_DIR:-$BASE_ROOT_DIR/ci/scratch} echo "Setting specific values in env" -if [ -n "${FILE_ENV}" ]; then - set -o errexit; - # shellcheck disable=SC1090 - source "${FILE_ENV}" -fi +# shellcheck disable=SC1090 +source "${FILE_ENV}" echo "Fallback to default values in env (if not yet set)" # The number of parallel jobs to pass down to make and test_runner.py