From b4404db82f539a70721695b9f4c3efe96ea08746 Mon Sep 17 00:00:00 2001 From: Nikita Evdokimov Date: Tue, 13 Dec 2022 13:11:52 +0300 Subject: [PATCH] TECH: restart AVD if startup fails --- .cirrus.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 7f7fb8017..0a394e867 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -32,12 +32,12 @@ check_android_task: -n emulator -k "system-images;android-30;google_apis;x86" start_avd_background_script: - $ANDROID_HOME/emulator/emulator + while ! [[ $(adb devices | awk 'NR>1 {print $1}') =~ "emulator.*" ]]; do sleep 5 && $ANDROID_HOME/emulator/emulator -avd emulator -no-audio -no-boot-anim -gpu swiftshader_indirect - -no-snapshot + -no-snapshot; done; # -no-window is not used here because the flag somehow affects the "GPS" test. actual for API=30 assemble_instrumented_tests_script: ./gradlew -PCI=true assembleDebugAndroidTest