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

Side by Side Diff: build/android/test_runner.py

Issue 1427683002: [Android] Add option to override test in-progress timeout for amp. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « build/android/pylib/remote/device/remote_device_environment.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Runs all types of tests from one unified interface.""" 7 """Runs all types of tests from one unified interface."""
8 8
9 import argparse 9 import argparse
10 import collections 10 import collections
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 group.add_argument('--device-oem', action='append', 146 group.add_argument('--device-oem', action='append',
147 help='Device OEM to run on.') 147 help='Device OEM to run on.')
148 group.add_argument('--remote-device-file', 148 group.add_argument('--remote-device-file',
149 help=('File with JSON to select remote device. ' 149 help=('File with JSON to select remote device. '
150 'Overrides all other flags.')) 150 'Overrides all other flags.'))
151 group.add_argument('--remote-device-timeout', type=int, 151 group.add_argument('--remote-device-timeout', type=int,
152 help='Times to retry finding remote device') 152 help='Times to retry finding remote device')
153 group.add_argument('--network-config', type=int, 153 group.add_argument('--network-config', type=int,
154 help='Integer that specifies the network environment ' 154 help='Integer that specifies the network environment '
155 'that the tests will be run in.') 155 'that the tests will be run in.')
156 group.add_argument('--test-timeout', type=int,
157 help='Test run timeout in seconds.')
156 158
157 device_os_group = group.add_mutually_exclusive_group() 159 device_os_group = group.add_mutually_exclusive_group()
158 device_os_group.add_argument('--remote-device-minimum-os', 160 device_os_group.add_argument('--remote-device-minimum-os',
159 help='Minimum OS on device.') 161 help='Minimum OS on device.')
160 device_os_group.add_argument('--remote-device-os', action='append', 162 device_os_group.add_argument('--remote-device-os', action='append',
161 help='OS to have on the device.') 163 help='OS to have on the device.')
162 164
163 api_secret_group = group.add_mutually_exclusive_group() 165 api_secret_group = group.add_mutually_exclusive_group()
164 api_secret_group.add_argument('--api-secret', default='', 166 api_secret_group.add_argument('--api-secret', default='',
165 help='API secret for remote devices.') 167 help='API secret for remote devices.')
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 if e.is_infra_error: 1000 if e.is_infra_error:
999 return constants.INFRA_EXIT_CODE 1001 return constants.INFRA_EXIT_CODE
1000 return constants.ERROR_EXIT_CODE 1002 return constants.ERROR_EXIT_CODE
1001 except: # pylint: disable=W0702 1003 except: # pylint: disable=W0702
1002 logging.exception('Unrecognized error occurred.') 1004 logging.exception('Unrecognized error occurred.')
1003 return constants.ERROR_EXIT_CODE 1005 return constants.ERROR_EXIT_CODE
1004 1006
1005 1007
1006 if __name__ == '__main__': 1008 if __name__ == '__main__':
1007 sys.exit(main()) 1009 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/pylib/remote/device/remote_device_environment.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698