Commit baef2353 authored by sky's avatar sky Committed by Commit bot

Changes android.py to wait longer with --wait-for-debugger

Otherwise it exits before I've had a chance to attach the debugger.

BUG=none
TEST=none
R=msw@chromium.org

Review URL: https://codereview.chromium.org/1129233007

Cr-Commit-Position: refs/heads/master@{#329864}
parent c4ae3ecb
...@@ -359,7 +359,11 @@ class AndroidShell(object): ...@@ -359,7 +359,11 @@ class AndroidShell(object):
subprocess.check_call(self._CreateADBCommand( subprocess.check_call(self._CreateADBCommand(
['shell', 'rm', '-f', STDOUT_PIPE])) ['shell', 'rm', '-f', STDOUT_PIPE]))
parameters.append('--fifo-path=%s' % STDOUT_PIPE) parameters.append('--fifo-path=%s' % STDOUT_PIPE)
self._ReadFifo(STDOUT_PIPE, stdout, on_application_stop) max_attempts = 5
if '--wait-for-debugger' in arguments:
max_attempts = 200
self._ReadFifo(STDOUT_PIPE, stdout, on_application_stop,
max_attempts=max_attempts)
# Extract map-origin arguments. # Extract map-origin arguments.
map_parameters, other_parameters = _Split(arguments, _IsMapOrigin) map_parameters, other_parameters = _Split(arguments, _IsMapOrigin)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment