| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 306 |
| 307 def ProcessJavaTestOptions(args): | 307 def ProcessJavaTestOptions(args): |
| 308 """Processes options/arguments and populates |options| with defaults.""" | 308 """Processes options/arguments and populates |options| with defaults.""" |
| 309 | 309 |
| 310 # TODO(jbudorick): Handle most of this function in argparse. | 310 # TODO(jbudorick): Handle most of this function in argparse. |
| 311 if args.annotation_str: | 311 if args.annotation_str: |
| 312 args.annotations = args.annotation_str.split(',') | 312 args.annotations = args.annotation_str.split(',') |
| 313 elif args.test_filter: | 313 elif args.test_filter: |
| 314 args.annotations = [] | 314 args.annotations = [] |
| 315 else: | 315 else: |
| 316 args.annotations = ['Smoke', 'SmallTest', 'MediumTest', 'LargeTest', | 316 args.annotations = ['SmallTest', 'MediumTest', 'LargeTest', 'EnormousTest', |
| 317 'EnormousTest', 'IntegrationTest'] | 317 'IntegrationTest'] |
| 318 | 318 |
| 319 if args.exclude_annotation_str: | 319 if args.exclude_annotation_str: |
| 320 args.exclude_annotations = args.exclude_annotation_str.split(',') | 320 args.exclude_annotations = args.exclude_annotation_str.split(',') |
| 321 else: | 321 else: |
| 322 args.exclude_annotations = [] | 322 args.exclude_annotations = [] |
| 323 | 323 |
| 324 | 324 |
| 325 def AddInstrumentationTestOptions(parser): | 325 def AddInstrumentationTestOptions(parser): |
| 326 """Adds Instrumentation test options to |parser|.""" | 326 """Adds Instrumentation test options to |parser|.""" |
| 327 | 327 |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 if e.is_infra_error: | 882 if e.is_infra_error: |
| 883 return constants.INFRA_EXIT_CODE | 883 return constants.INFRA_EXIT_CODE |
| 884 return constants.ERROR_EXIT_CODE | 884 return constants.ERROR_EXIT_CODE |
| 885 except: # pylint: disable=W0702 | 885 except: # pylint: disable=W0702 |
| 886 logging.exception('Unrecognized error occurred.') | 886 logging.exception('Unrecognized error occurred.') |
| 887 return constants.ERROR_EXIT_CODE | 887 return constants.ERROR_EXIT_CODE |
| 888 | 888 |
| 889 | 889 |
| 890 if __name__ == '__main__': | 890 if __name__ == '__main__': |
| 891 sys.exit(main()) | 891 sys.exit(main()) |
| OLD | NEW |