| OLD | NEW |
| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 group.add_argument('--break-on-failure', '--break_on_failure', | 278 group.add_argument('--break-on-failure', '--break_on_failure', |
| 279 dest='break_on_failure', action='store_true', | 279 dest='break_on_failure', action='store_true', |
| 280 help='Whether to break on failure.') | 280 help='Whether to break on failure.') |
| 281 group.add_argument('--extract-test-list-from-filter', | 281 group.add_argument('--extract-test-list-from-filter', |
| 282 action='store_true', | 282 action='store_true', |
| 283 help='When a test filter is specified, and the list of ' | 283 help='When a test filter is specified, and the list of ' |
| 284 'tests can be determined from it, skip querying the ' | 284 'tests can be determined from it, skip querying the ' |
| 285 'device for the list of all tests. Speeds up local ' | 285 'device for the list of all tests. Speeds up local ' |
| 286 'development, but is not safe to use on bots (' | 286 'development, but is not safe to use on bots (' |
| 287 'http://crbug.com/549214') | 287 'http://crbug.com/549214') |
| 288 group.add_argument('--enable-xml-result-parsing', |
| 289 action='store_true', |
| 290 help=argparse.SUPPRESS) |
| 288 | 291 |
| 289 filter_group = group.add_mutually_exclusive_group() | 292 filter_group = group.add_mutually_exclusive_group() |
| 290 filter_group.add_argument('-f', '--gtest_filter', '--gtest-filter', | 293 filter_group.add_argument('-f', '--gtest_filter', '--gtest-filter', |
| 291 dest='test_filter', | 294 dest='test_filter', |
| 292 help='googletest-style filter string.') | 295 help='googletest-style filter string.') |
| 293 filter_group.add_argument('--gtest-filter-file', dest='test_filter_file', | 296 filter_group.add_argument('--gtest-filter-file', dest='test_filter_file', |
| 294 type=os.path.realpath, | 297 type=os.path.realpath, |
| 295 help='Path to file that contains googletest-style ' | 298 help='Path to file that contains googletest-style ' |
| 296 'filter strings. (Lines will be joined with ' | 299 'filter strings. (Lines will be joined with ' |
| 297 '":" to create a single filter string.)') | 300 '":" to create a single filter string.)') |
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 949 if e.is_infra_error: | 952 if e.is_infra_error: |
| 950 return constants.INFRA_EXIT_CODE | 953 return constants.INFRA_EXIT_CODE |
| 951 return constants.ERROR_EXIT_CODE | 954 return constants.ERROR_EXIT_CODE |
| 952 except: # pylint: disable=W0702 | 955 except: # pylint: disable=W0702 |
| 953 logging.exception('Unrecognized error occurred.') | 956 logging.exception('Unrecognized error occurred.') |
| 954 return constants.ERROR_EXIT_CODE | 957 return constants.ERROR_EXIT_CODE |
| 955 | 958 |
| 956 | 959 |
| 957 if __name__ == '__main__': | 960 if __name__ == '__main__': |
| 958 sys.exit(main()) | 961 sys.exit(main()) |
| OLD | NEW |