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