ci: abort init-stage2.sh early if install dir is missing

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35740>
This commit is contained in:
Eric Engestrom 2025-07-16 00:59:22 +02:00 committed by Marge Bot
parent e77c984cef
commit 3f5d4eac5f

View file

@ -97,6 +97,11 @@ if [ -n "$HWCI_ENABLE_X86_KVM" ]; then
modprobe ${KVM_KERNEL_MODULE}
fi
if ! [ -e /install/ ] && ! [ -e $CI_PROJECT_DIR/install/ ]; then
echo "Missing install/ dir"
exit 1
fi
# Fix prefix confusion: the build installs to $CI_PROJECT_DIR, but we expect
# it in /install
ln -sf $CI_PROJECT_DIR/install /install