Skip to content

Commit a2722fb

Browse files
committed
Update adb check for sys.boot_completed
1 parent 81d8b21 commit a2722fb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/scripts/android/android-emulator-tests.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,13 @@ nohup emulator -no-metrics -partition-size 1024 -memory 4096 -wipe-data -no-wind
9898
# wait briefly before starting to poll the emulator
9999
sleep 10
100100

101-
log "Waiting for Android emulator startup"
102101
EMULATOR_CHECK_SECONDS_ELAPSED=0
103102
EMULATOR_CHECK_INTERVAL=5 # Seconds between status checks
104103
while true; do
104+
log "Waiting for Android emulator startup ($EMULATOR_CHECK_SECONDS_ELAPSED)"
105105
# Check if the boot is completed
106106
# 'adb shell getprop sys.boot_completed' returns 1 when done
107107
# Ignore failure status since it will fail with "adb: device offline"
108-
adb shell getprop sys.boot_completed || true
109108
BOOT_STATUS=$(adb shell getprop sys.boot_completed || true 2>/dev/null | tr -d '\r')
110109

111110
if [ "$BOOT_STATUS" == "1" ]; then

0 commit comments

Comments
 (0)