We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1fbe04 commit 50a6484Copy full SHA for 50a6484
1 file changed
script/ci-wait-for-emulator.sh
@@ -21,7 +21,21 @@ adb shell settings put global animator_duration_scale 0
21
# To test WKD we need to route all traffic for localhost:443 to localhost:1212
22
# as we can't use 443 directly for a mock web server.
23
###################################################################################################
24
-adb root
+
25
+adb root || {
26
+ echo "adb root failed, restarting adb and waiting for emulator..."
27
28
+ adb kill-server || true
29
+ adb start-server
30
31
+ adb wait-for-device
32
33
+ # shellcheck disable=SC2016
34
+ adb shell 'while [[ "$(getprop sys.boot_completed)" != "1" ]]; do sleep 1; done;'
35
+}
36
37
+sleep 2
38
39
adb wait-for-device
40
# shellcheck disable=SC2016
41
adb shell 'while [[ "$(getprop sys.boot_completed)" != "1" ]]; do sleep 1; done;'
0 commit comments