| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 # TODO(jbudorick): Remove --build-directory once no bots use it. | 65 # TODO(jbudorick): Remove --build-directory once no bots use it. |
| 66 group.add_argument('--build-directory', dest='build_directory', | 66 group.add_argument('--build-directory', dest='build_directory', |
| 67 help='DEPRECATED') | 67 help='DEPRECATED') |
| 68 group.add_argument('--output-directory', dest='output_directory', | 68 group.add_argument('--output-directory', dest='output_directory', |
| 69 type=os.path.realpath, | 69 type=os.path.realpath, |
| 70 help=('Path to the directory in which build files are' | 70 help=('Path to the directory in which build files are' |
| 71 ' located (must include build type). This will take' | 71 ' located (must include build type). This will take' |
| 72 ' precedence over --debug, --release and' | 72 ' precedence over --debug, --release and' |
| 73 ' --build-directory')) | 73 ' --build-directory')) |
| 74 group.add_argument('--num_retries', '--num-retries', dest='num_retries', | 74 group.add_argument('--num_retries', '--num-retries', |
| 75 '--test_launcher_retry_limit', |
| 76 '--test-launcher-retry-limit', |
| 77 dest='num_retries', |
| 75 type=int, default=2, | 78 type=int, default=2, |
| 76 help=('Number of retries for a test before ' | 79 help=('Number of retries for a test before ' |
| 77 'giving up (default: %(default)s).')) | 80 'giving up (default: %(default)s).')) |
| 78 group.add_argument('-v', | 81 group.add_argument('-v', |
| 79 '--verbose', | 82 '--verbose', |
| 80 dest='verbose_count', | 83 dest='verbose_count', |
| 81 default=0, | 84 default=0, |
| 82 action='count', | 85 action='count', |
| 83 help='Verbose level (multiple times for more)') | 86 help='Verbose level (multiple times for more)') |
| 84 group.add_argument('--flakiness-dashboard-server', | 87 group.add_argument('--flakiness-dashboard-server', |
| (...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 if e.is_infra_error: | 867 if e.is_infra_error: |
| 865 return constants.INFRA_EXIT_CODE | 868 return constants.INFRA_EXIT_CODE |
| 866 return constants.ERROR_EXIT_CODE | 869 return constants.ERROR_EXIT_CODE |
| 867 except: # pylint: disable=W0702 | 870 except: # pylint: disable=W0702 |
| 868 logging.exception('Unrecognized error occurred.') | 871 logging.exception('Unrecognized error occurred.') |
| 869 return constants.ERROR_EXIT_CODE | 872 return constants.ERROR_EXIT_CODE |
| 870 | 873 |
| 871 | 874 |
| 872 if __name__ == '__main__': | 875 if __name__ == '__main__': |
| 873 sys.exit(main()) | 876 sys.exit(main()) |
| OLD | NEW |