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.
This commit is contained in:
Alex Richardson 2022-08-08 15:29:56 +00:00 committed by Simon McVittie
parent ca091e78d3
commit aa90d09940

View file

@ -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