Debug android-device-farm-run.sh (#3423)

This commit is contained in:
Bart Louwers
2025-04-22 23:12:01 +02:00
committed by GitHub
parent fb224c25dc
commit 86c1af5d94

View File

@@ -1,6 +1,7 @@
#!/bin/bash
set -e
set -o xtrace
# List of required environment variables
required_vars=(
@@ -87,6 +88,14 @@ arn="$(aws devicefarm schedule-run \
--execution-configuration videoCapture=false \
--output text --query run.arn)"
echo ARN: $arn >&2
if [ -z "$arn" ]; then
echo "Error: Failed to schedule Device Farm run or got empty ARN" >&2
exit 1
fi
echo "$arn"
if [[ "$wait_for_completion" != "true" ]]; then