| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 action='store_true', | 289 action='store_true', |
| 290 help=argparse.SUPPRESS) | 290 help=argparse.SUPPRESS) |
| 291 | 291 |
| 292 filter_group = group.add_mutually_exclusive_group() | 292 filter_group = group.add_mutually_exclusive_group() |
| 293 filter_group.add_argument('-f', '--gtest_filter', '--gtest-filter', | 293 filter_group.add_argument('-f', '--gtest_filter', '--gtest-filter', |
| 294 dest='test_filter', | 294 dest='test_filter', |
| 295 help='googletest-style filter string.') | 295 help='googletest-style filter string.') |
| 296 filter_group.add_argument('--gtest-filter-file', dest='test_filter_file', | 296 filter_group.add_argument('--gtest-filter-file', dest='test_filter_file', |
| 297 type=os.path.realpath, | 297 type=os.path.realpath, |
| 298 help='Path to file that contains googletest-style ' | 298 help='Path to file that contains googletest-style ' |
| 299 'filter strings. (Lines will be joined with ' | 299 'filter strings. See also ' |
| 300 '":" to create a single filter string.)') | 300 '//testing/buildbot/filters/README.md.') |
| 301 | 301 |
| 302 AddDeviceOptions(parser) | 302 AddDeviceOptions(parser) |
| 303 AddCommonOptions(parser) | 303 AddCommonOptions(parser) |
| 304 AddRemoteDeviceOptions(parser) | 304 AddRemoteDeviceOptions(parser) |
| 305 | 305 |
| 306 | 306 |
| 307 def AddLinkerTestOptions(parser): | 307 def AddLinkerTestOptions(parser): |
| 308 group = parser.add_argument_group('Linker Test Options') | 308 group = parser.add_argument_group('Linker Test Options') |
| 309 group.add_argument('-f', '--gtest-filter', dest='test_filter', | 309 group.add_argument('-f', '--gtest-filter', dest='test_filter', |
| 310 help='googletest-style filter string.') | 310 help='googletest-style filter string.') |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 if e.is_infra_error: | 952 if e.is_infra_error: |
| 953 return constants.INFRA_EXIT_CODE | 953 return constants.INFRA_EXIT_CODE |
| 954 return constants.ERROR_EXIT_CODE | 954 return constants.ERROR_EXIT_CODE |
| 955 except: # pylint: disable=W0702 | 955 except: # pylint: disable=W0702 |
| 956 logging.exception('Unrecognized error occurred.') | 956 logging.exception('Unrecognized error occurred.') |
| 957 return constants.ERROR_EXIT_CODE | 957 return constants.ERROR_EXIT_CODE |
| 958 | 958 |
| 959 | 959 |
| 960 if __name__ == '__main__': | 960 if __name__ == '__main__': |
| 961 sys.exit(main()) | 961 sys.exit(main()) |
| OLD | NEW |