ci/android: allow unbound ARTIFACTS_BASE_URL in android-cts-runner.sh

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