Skip to content

Commit 51cfbf4

Browse files
committed
Fix an issue with the wait for AVD script
1 parent c6cb3a6 commit 51cfbf4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/commands/android_emulator_start.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ steps:
4444
command: avdmanager create avd --force -n <<parameters.device_name>> -k "system-images;<<parameters.platform_version>>;google_apis;x86" -g google_apis -d "Nexus 4"
4545

4646
- run:
47-
name: Start Android Emulator in background
47+
name: Start Android Emulator (background)
4848
command: |
4949
/usr/local/share/android-sdk/emulator/emulator @<<parameters.device_name>> -version
5050
/usr/local/share/android-sdk/emulator/emulator @<<parameters.device_name>> -skin 470x860 -cores 1 -gpu auto -accel on -memory 1024 -no-audio -no-snapshot -no-boot-anim -no-window -logcat *:W | grep -i 'ReactNative\|<<parameters.logcat_grep>>'
@@ -54,12 +54,12 @@ steps:
5454
name: Wait for AVD to be ready
5555
no_output_timeout: "5m"
5656
command: |
57-
boot=""
57+
export BOOT=""
5858
echo "Waiting for AVD to finish booting"
5959
export PATH=$(dirname $(dirname $(command -v android)))/platform-tools:$PATH
60-
until [[ "$boot" =~ "1" ]]; do
60+
until [[ "$BOOT" =~ "1" ]]; do
6161
sleep 5
62-
boot=$(adb -e shell getprop sys.boot_completed 2>&1)
62+
export BOOT=$(adb -e shell getprop sys.boot_completed 2>&1)
6363
done
6464
sleep 15
6565
adb shell settings put global window_animation_scale 0

0 commit comments

Comments
 (0)