summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2017-10-17 11:06:25 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2017-10-17 11:06:25 +0800
commitfe34b814bd8a801925d21e1f3d93323423c3bca0 (patch)
treef00d2765bbcb0f88b6d4a8e772f93a0088aeed16
parentf96c23687b4651218b1f85556638c46486ce2d29 (diff)
parente68c7533debbbc2599f5cf5035d21a949799174c (diff)
Merge branch 'master' of ssh://git.linaro.org/people/yongqin.liu/public/test-definitions into self-master
-rwxr-xr-xautomated/lib/android-test-lib6
1 files changed, 3 insertions, 3 deletions
diff --git a/automated/lib/android-test-lib b/automated/lib/android-test-lib
index 6dd06ce..087256c 100755
--- a/automated/lib/android-test-lib
+++ b/automated/lib/android-test-lib
@@ -59,7 +59,7 @@ initialize_adb() {
adb_root() {
if [ "$(adb shell whoami)" = "root" ]; then
- echo "DUT already has adbd running as root"
+ info_msg "DUT already has adbd running as root"
else
adb root
timeout 600 adb wait-for-device || error_msg "Device NOT found!"
@@ -93,8 +93,6 @@ wait_boot_completed() {
wait_homescreen() {
[ "$#" -ne 1 ] && error_msg "Usage: wait_homescreen timeout_in_seconds"
- timeout="$1"
- end=$(( $(date +%s) + timeout ))
# call disablesuspend.sh if it exists
# on some builds, the launcher package might not be com.android.launcher,
@@ -108,6 +106,8 @@ wait_homescreen() {
fi
fi
+ timeout="$1"
+ end=$(( $(date +%s) + timeout ))
homescreen_displayed=false
while [ "$(date +%s)" -lt "$end" ]; do
if adb logcat -sd ActivityManager:I | grep "Displayed com.android.launcher"; then