From c9d439b48da64e4a58c458847c9d52b92bdb6160 Mon Sep 17 00:00:00 2001 From: ASDAlexander77 Date: Thu, 12 Nov 2026 15:41:38 +0000 Subject: [PATCH] Android emulator tests: the emulator start step polls without errexit GitHub runs bash steps with -e -o pipefail, so the first boot poll - `adb shell` before the device is up - failed the assignment and ended the step with exit 1 and no message (manual run 43248917621; KVM was usable). Co-Authored-By: Claude Opus 5.5 --- .github/workflows/test-android.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-android.yml b/.github/workflows/test-android.yml index 37b019e38..0aca60e9f 100644 --- a/.github/workflows/test-android.yml +++ b/.github/workflows/test-android.yml @@ -158,8 +158,10 @@ jobs: - name: Start the emulator shell: bash run: | + # bash runs with -e -o pipefail: the polls below fail until a device is up + set +e +o pipefail ls -l /dev/kvm - emulator -accel-check || true + emulator -accel-check adb start-server > /dev/null 2>&1 nohup emulator -avd tslang_api29_x86_64 -no-window -no-audio -no-boot-anim -no-snapshot \ -gpu swiftshader_indirect -memory 4096 -cores 4 -accel on < /dev/null > emulator.log 2>&1 &