Skip to content

Commit 5cd6ab5

Browse files
committed
refactor: Remove manual emulator startup logic from integration test workflow
This change simplifies the automated integration test workflow by removing the manual emulator startup process, which was previously included to handle cases where no emulator was running. The workflow now focuses on checking the emulator status and gathering device information without attempting to start an emulator manually.
1 parent f4dcb4e commit 5cd6ab5

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

.github/workflows/automated_integration_test.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -473,40 +473,6 @@ jobs:
473473
echo "=== Emulator Status Check ==="
474474
adb devices
475475
476-
# If no emulator is running, try to start one manually
477-
if ! adb devices | grep -q emulator; then
478-
echo "No emulator found, attempting manual startup..."
479-
480-
# List available AVDs
481-
echo "Available AVDs:"
482-
emulator -list-avds
483-
484-
# Try to start the first available AVD
485-
AVD_NAME=$(emulator -list-avds | head -1)
486-
if [ -n "$AVD_NAME" ]; then
487-
echo "Starting AVD: $AVD_NAME"
488-
emulator -avd "$AVD_NAME" -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -read-only -memory 1024 &
489-
EMULATOR_PID=$!
490-
echo "Emulator started with PID: $EMULATOR_PID"
491-
492-
# Wait for emulator to boot
493-
echo "Waiting for emulator to boot..."
494-
for i in {1..60}; do
495-
if adb devices | grep -q emulator; then
496-
echo "Emulator is now available"
497-
break
498-
fi
499-
echo "Waiting... ($i/60)"
500-
sleep 10
501-
done
502-
else
503-
echo "No AVDs available"
504-
fi
505-
fi
506-
507-
echo "=== Final Emulator Status ==="
508-
adb devices
509-
510476
echo "=== Emulator Info ==="
511477
adb shell getprop ro.build.version.release || echo "Failed to get Android version"
512478
adb shell getprop ro.product.model || echo "Failed to get device model"

0 commit comments

Comments
 (0)