From f47a6d5597d389261216204e1fec3909fcb071bd Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Sun, 18 May 2014 22:12:08 +0200 Subject: Added travis config file --- ci/wait_for_emulator.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ci/wait_for_emulator.sh (limited to 'ci') diff --git a/ci/wait_for_emulator.sh b/ci/wait_for_emulator.sh new file mode 100644 index 000000000..317883878 --- /dev/null +++ b/ci/wait_for_emulator.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +bootanim="" +failcounter=0 +until [[ "$bootanim" =~ "stopped" ]]; do + bootanim=`adb -e shell getprop init.svc.bootanim 2>&1` + echo "$bootanim" + if [[ "$bootanim" =~ "not found" ]]; then + let "failcounter += 1" + if [[ $failcounter -gt 3 ]]; then + echo "Failed to start emulator" + exit 1 + fi + fi + sleep 1 +done +echo "Done" -- cgit v1.2.3