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
This commit is contained in:
Daniel Martí 2016-04-29 20:46:25 +01:00
parent f0d6c7c720
commit 7bc130d81a

View File

@ -24,7 +24,7 @@ while true; do
if [[ $sec -ge $timeout ]]; then if [[ $sec -ge $timeout ]]; then
err "Timeout ($timeout seconds) reached - Failed to start emulator" err "Timeout ($timeout seconds) reached - Failed to start emulator"
fi 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 if [[ "$out" =~ "command not found" ]]; then
err "$out" err "$out"
fi fi