]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
tools/ci-build.sh: Ensure that $builddir is set
authorAlex Richardson <arichardson@FreeBSD.org>
Mon, 8 Aug 2022 15:29:56 +0000 (15:29 +0000)
committerSimon McVittie <smcv@collabora.com>
Wed, 10 Aug 2022 11:18:20 +0000 (11:18 +0000)
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

index a71214db1b7eafb1ed1751e263e2795322e7af32..f9d9187c10288010d285d87bcbeef5db01492df6 100755 (executable)
@@ -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