summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2022-08-08 15:29:56 +0000
committerSimon McVittie <smcv@collabora.com>2022-08-10 11:18:20 +0000
commitaa90d09940afce95be5b3cc96e2cdf1d8ff80d19 (patch)
tree9037f3f7c0739ded148d46e47a2160c927d76e60 /tools
parentca091e78d346d9ef8bd9d8cc41ceb395fcdc21c0 (diff)
downloaddbus-aa90d09940afce95be5b3cc96e2cdf1d8ff80d19.tar.gz
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.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ci-build.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/ci-build.sh b/tools/ci-build.sh
index a71214db..f9d9187c 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