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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 'Default is env var BUILDTYPE or Debug.')) | 72 'Default is env var BUILDTYPE or Debug.')) |
73 | 73 |
74 group.add_argument('--build-directory', dest='build_directory', | 74 group.add_argument('--build-directory', dest='build_directory', |
75 help=('Path to the directory in which build files are' | 75 help=('Path to the directory in which build files are' |
76 ' located (should not include build type)')) | 76 ' located (should not include build type)')) |
77 group.add_argument('--output-directory', dest='output_directory', | 77 group.add_argument('--output-directory', dest='output_directory', |
78 help=('Path to the directory in which build files are' | 78 help=('Path to the directory in which build files are' |
79 ' located (must include build type). This will take' | 79 ' located (must include build type). This will take' |
80 ' precedence over --debug, --release and' | 80 ' precedence over --debug, --release and' |
81 ' --build-directory')) | 81 ' --build-directory')) |
82 group.add_argument('--num_retries', dest='num_retries', type=int, default=2, | 82 group.add_argument('--num_retries', '--num-retries', dest='num_retries', |
| 83 type=int, default=2, |
83 help=('Number of retries for a test before ' | 84 help=('Number of retries for a test before ' |
84 'giving up (default: %(default)s).')) | 85 'giving up (default: %(default)s).')) |
85 group.add_argument('-v', | 86 group.add_argument('-v', |
86 '--verbose', | 87 '--verbose', |
87 dest='verbose_count', | 88 dest='verbose_count', |
88 default=0, | 89 default=0, |
89 action='count', | 90 action='count', |
90 help='Verbose level (multiple times for more)') | 91 help='Verbose level (multiple times for more)') |
91 group.add_argument('--flakiness-dashboard-server', | 92 group.add_argument('--flakiness-dashboard-server', |
92 dest='flakiness_dashboard_server', | 93 dest='flakiness_dashboard_server', |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 if e.is_infra_error: | 1008 if e.is_infra_error: |
1008 return constants.INFRA_EXIT_CODE | 1009 return constants.INFRA_EXIT_CODE |
1009 return constants.ERROR_EXIT_CODE | 1010 return constants.ERROR_EXIT_CODE |
1010 except: # pylint: disable=W0702 | 1011 except: # pylint: disable=W0702 |
1011 logging.exception('Unrecognized error occurred.') | 1012 logging.exception('Unrecognized error occurred.') |
1012 return constants.ERROR_EXIT_CODE | 1013 return constants.ERROR_EXIT_CODE |
1013 | 1014 |
1014 | 1015 |
1015 if __name__ == '__main__': | 1016 if __name__ == '__main__': |
1016 sys.exit(main()) | 1017 sys.exit(main()) |
OLD | NEW |