From 7bc130d81a467de58c280903439d33ff477e2ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 29 Apr 2016 20:46:25 +0100 Subject: [PATCH] wait-for-emulator: skip adb log messages Otherwise, we'd interpret this as "booting", which is wrong: $ adb -e shell getprop init.svc.bootanim * daemon not running. starting it now on port 5037 * * daemon started successfully * error: no devices found --- tools/wait-for-emulator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/wait-for-emulator b/tools/wait-for-emulator index 1bb0defdb..7b772a250 100755 --- a/tools/wait-for-emulator +++ b/tools/wait-for-emulator @@ -24,7 +24,7 @@ while true; do if [[ $sec -ge $timeout ]]; then err "Timeout ($timeout seconds) reached - Failed to start emulator" fi - out=$(adb -e shell getprop init.svc.bootanim 2>&1) + out=$(adb -e shell getprop init.svc.bootanim 2>&1 | grep -v '^\*') if [[ "$out" =~ "command not found" ]]; then err "$out" fi