From aa90d09940afce95be5b3cc96e2cdf1d8ff80d19 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Mon, 8 Aug 2022 15:29:56 +0000 Subject: [PATCH] tools/ci-build.sh: Ensure that $builddir is set When adding the new FreeBSD CI, this was not implicitly forwarded to QEMU, so the build script failed with confusing errors. Add an explicit check that the variable is set to make those cases easier to debug. --- tools/ci-build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/ci-build.sh b/tools/ci-build.sh index a71214db1..f9d9187c1 100755 --- a/tools/ci-build.sh +++ b/tools/ci-build.sh @@ -176,6 +176,10 @@ maybe_fail_tests () { NOCONFIGURE=1 ./autogen.sh # clean up directories from possible previous builds +if [ -z "$builddir" ]; then + echo "ERROR: builddir environment variable must be set!" + exit 1 +fi rm -rf "$builddir" rm -rf ci-build-dist rm -rf src-from-dist -- 2.47.3