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

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

Issue 1854733003: Reland of GN: Make breakpad_unittests & sandbox_linux_unittests use test() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test-minor-renames
Patch Set: use _dist for executable Created 4 years, 8 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 unified diff | Download patch
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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 '(increases flakiness)') 242 '(increases flakiness)')
243 243
244 244
245 def AddGTestOptions(parser): 245 def AddGTestOptions(parser):
246 """Adds gtest options to |parser|.""" 246 """Adds gtest options to |parser|."""
247 247
248 group = parser.add_argument_group('GTest Options') 248 group = parser.add_argument_group('GTest Options')
249 group.add_argument('-s', '--suite', dest='suite_name', 249 group.add_argument('-s', '--suite', dest='suite_name',
250 nargs='+', metavar='SUITE_NAME', required=True, 250 nargs='+', metavar='SUITE_NAME', required=True,
251 help='Executable name of the test suite to run.') 251 help='Executable name of the test suite to run.')
252 group.add_argument('--executable-path',
253 help='Path to executable for native (non-apk) tests.')
252 group.add_argument('--test-apk-incremental-install-script', 254 group.add_argument('--test-apk-incremental-install-script',
253 help='Path to install script for the test apk.') 255 help='Path to install script for the test apk.')
254 group.add_argument('--gtest_also_run_disabled_tests', 256 group.add_argument('--gtest_also_run_disabled_tests',
255 '--gtest-also-run-disabled-tests', 257 '--gtest-also-run-disabled-tests',
256 dest='run_disabled', action='store_true', 258 dest='run_disabled', action='store_true',
257 help='Also run disabled tests if applicable.') 259 help='Also run disabled tests if applicable.')
258 group.add_argument('-a', '--test-arguments', dest='test_arguments', 260 group.add_argument('-a', '--test-arguments', dest='test_arguments',
259 default='', 261 default='',
260 help='Additional arguments to pass to the test.') 262 help='Additional arguments to pass to the test.')
261 group.add_argument('-t', '--shard-timeout', 263 group.add_argument('-t', '--shard-timeout',
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 if e.is_infra_error: 1139 if e.is_infra_error:
1138 return constants.INFRA_EXIT_CODE 1140 return constants.INFRA_EXIT_CODE
1139 return constants.ERROR_EXIT_CODE 1141 return constants.ERROR_EXIT_CODE
1140 except: # pylint: disable=W0702 1142 except: # pylint: disable=W0702
1141 logging.exception('Unrecognized error occurred.') 1143 logging.exception('Unrecognized error occurred.')
1142 return constants.ERROR_EXIT_CODE 1144 return constants.ERROR_EXIT_CODE
1143 1145
1144 1146
1145 if __name__ == '__main__': 1147 if __name__ == '__main__':
1146 sys.exit(main()) 1148 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698