ci/android: allow unbound ARTIFACTS_BASE_URL in android-cts-runner.sh
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

It may happen that `android-cts-runner.sh` is launched from a pure LAVA
job which may not define `ARTIFACTS_BASE_URL`.

Allow the script to continue even in that case.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35937>
This commit is contained in:
Antonio Ospite 2025-07-04 11:08:52 +02:00 committed by Marge Bot
parent 8f336cd889
commit 924027865b

View file

@ -65,7 +65,9 @@ set -e
cp -r "/android-cts/results/latest"/* $RESULTS_DIR
cp -r "/android-cts/logs/latest"/* $RESULTS_DIR
echo "============================================"
echo "Review the Android CTS test results at: ${ARTIFACTS_BASE_URL}/results/test_result.html"
if [ -n "${ARTIFACTS_BASE_URL:-}" ]; then
echo "============================================"
echo "Review the Android CTS test results at: ${ARTIFACTS_BASE_URL}/results/test_result.html"
fi
section_end android_cts_test