Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3345)

Unified Diff: build/android/buildbot/bb_device_status_check.py

Issue 38483002: Add sleep after restarting usb ports and before checking for devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/buildbot/bb_device_status_check.py
diff --git a/build/android/buildbot/bb_device_status_check.py b/build/android/buildbot/bb_device_status_check.py
index e279b5095c32ee9b33f1f17d0927139d602f1cb9..9f0858607cbac17b4bcc436a53a4cf07529bc1d0 100755
--- a/build/android/buildbot/bb_device_status_check.py
+++ b/build/android/buildbot/bb_device_status_check.py
@@ -8,10 +8,11 @@
import logging
import optparse
import os
+import re
import smtplib
import subprocess
import sys
-import re
+import time
import urllib
import bb_annotations
@@ -260,6 +261,7 @@ def main():
rc = RestartUsb()
if rc:
return 1
+ time.sleep(2)
tonyg 2013/10/24 01:10:59 I think we want adb wait-for-device instead of tim
Isaac (use chromium) 2013/10/24 01:20:37 I think this actually does require sleep in worst
frankf 2013/10/24 01:30:12 wait-for-device works for particular devices (usin
navabi 2013/10/24 02:42:35 I talked to Frank about this, and I think sleep is
bulach 2013/10/24 13:01:14 FYI, one issue I saw was that there was a lingerin
bulach 2013/10/24 13:12:17 btw, dominik just tested and apparently 1s is not
navabi 2013/10/24 18:56:24 I don't think we want to stop as soon as anything
devices = android_commands.GetAttachedDevices()
# TODO(navabi): Test to make sure this fails and then fix call
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698