summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2017-10-13 15:25:08 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2017-10-13 15:25:08 +0800
commite68c7533debbbc2599f5cf5035d21a949799174c (patch)
tree3822d18731cfd7e3bdba4e9c99fbcee370d36c10
parent7dbc605e9c8c3aa56f2e5ba276b5f4616d3017df (diff)
use info_msg instead of echo
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-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