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

Unified Diff: build/android/devil/utils/lsusb.py

Issue 1632083002: [Android] Increase timeout for lsusb (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 5 to 10 Created 4 years, 11 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/devil/utils/lsusb.py
diff --git a/build/android/devil/utils/lsusb.py b/build/android/devil/utils/lsusb.py
index 37bf4f2789a6910dff3dc417dcff402d242a8c7b..c02041f0ca95876b6c8533afdbeb94af545f789b 100644
--- a/build/android/devil/utils/lsusb.py
+++ b/build/android/devil/utils/lsusb.py
@@ -17,7 +17,7 @@ _LSUSB_GROUP_RE = re.compile(r'^ *([^ ]+.*):$')
def _lsusbv_on_device(bus_id, dev_id):
"""Calls lsusb -v on device."""
_, raw_output = cmd_helper.GetCmdStatusAndOutputWithTimeout(
- ['lsusb', '-v', '-s', '%s:%s' % (bus_id, dev_id)], timeout=2)
+ ['lsusb', '-v', '-s', '%s:%s' % (bus_id, dev_id)], timeout=10)
device = {'bus': bus_id, 'device': dev_id}
depth_stack = [device]
@@ -80,7 +80,7 @@ def _lsusbv_on_device(bus_id, dev_id):
def lsusb():
"""Call lsusb and return the parsed output."""
_, lsusb_list_output = cmd_helper.GetCmdStatusAndOutputWithTimeout(
- ['lsusb'], timeout=2)
+ ['lsusb'], timeout=10)
devices = []
for line in lsusb_list_output.splitlines():
m = _LSUSB_BUS_DEVICE_RE.match(line)
« 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