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

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

Issue 1858683002: Revert 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: 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.')
254 group.add_argument('--test-apk-incremental-install-script', 252 group.add_argument('--test-apk-incremental-install-script',
255 help='Path to install script for the test apk.') 253 help='Path to install script for the test apk.')
256 group.add_argument('--gtest_also_run_disabled_tests', 254 group.add_argument('--gtest_also_run_disabled_tests',
257 '--gtest-also-run-disabled-tests', 255 '--gtest-also-run-disabled-tests',
258 dest='run_disabled', action='store_true', 256 dest='run_disabled', action='store_true',
259 help='Also run disabled tests if applicable.') 257 help='Also run disabled tests if applicable.')
260 group.add_argument('-a', '--test-arguments', dest='test_arguments', 258 group.add_argument('-a', '--test-arguments', dest='test_arguments',
261 default='', 259 default='',
262 help='Additional arguments to pass to the test.') 260 help='Additional arguments to pass to the test.')
263 group.add_argument('-t', '--shard-timeout', 261 group.add_argument('-t', '--shard-timeout',
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 if e.is_infra_error: 1137 if e.is_infra_error:
1140 return constants.INFRA_EXIT_CODE 1138 return constants.INFRA_EXIT_CODE
1141 return constants.ERROR_EXIT_CODE 1139 return constants.ERROR_EXIT_CODE
1142 except: # pylint: disable=W0702 1140 except: # pylint: disable=W0702
1143 logging.exception('Unrecognized error occurred.') 1141 logging.exception('Unrecognized error occurred.')
1144 return constants.ERROR_EXIT_CODE 1142 return constants.ERROR_EXIT_CODE
1145 1143
1146 1144
1147 if __name__ == '__main__': 1145 if __name__ == '__main__':
1148 sys.exit(main()) 1146 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/pylib/gtest/gtest_test_instance.py ('k') | build/config/android/internal_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698