From f5aecc1d1dfab8ad3397915f13920825e2ce6701 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 24 Feb 2019 15:51:48 +0000 Subject: [PATCH] Revert "androidtest.bash: wait for device to be ready before using it" This reverts commit 27b9571de800c05a41081ea80cd934e48e0a8f70. Reason for revert: broke the multi-device Android builder. And the wait logic is moving to the exec wrapper anyway. Change-Id: I3e429106bbe70b3a12286f8f229a2b558279eec4 Reviewed-on: https://go-review.googlesource.com/c/163620 Run-TryBot: Elias Naur TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/androidtest.bash | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/androidtest.bash b/src/androidtest.bash index a3784bc454..e43b89c0dc 100755 --- a/src/androidtest.bash +++ b/src/androidtest.bash @@ -69,12 +69,6 @@ cp -a "${GOROOT}/test" "${FAKE_GOROOT}/" cp -a "${GOROOT}/lib" "${FAKE_GOROOT}/" cp -a "${pkgdir}" "${FAKE_GOROOT}/pkg/" -# In case we're booting a device or emulator alongside androidtest.bash -# wait for it to be ready. adb wait-for-device is not enough, we have -# wait for sys.boot_completed. -echo '# Waiting for android device to be ready' -adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;' - echo '# Syncing test files to android device' adb $GOANDROID_ADB_FLAGS shell mkdir -p /data/local/tmp/goroot time adb $GOANDROID_ADB_FLAGS sync data &> /dev/null -- 2.48.1