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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 help='Alias for: --verbose --num-retries=0 ' | 156 help='Alias for: --verbose --num-retries=0 ' |
157 '--enable-device-cache --enable-concurrent-adb ' | 157 '--enable-device-cache --enable-concurrent-adb ' |
158 '--skip-clear-data --extract-test-list-from-filter') | 158 '--skip-clear-data --extract-test-list-from-filter') |
159 | 159 |
160 # TODO(jbudorick): Remove this once downstream bots have switched to | 160 # TODO(jbudorick): Remove this once downstream bots have switched to |
161 # api.test_results. | 161 # api.test_results. |
162 parser.add_argument( | 162 parser.add_argument( |
163 '--flakiness-dashboard-server', | 163 '--flakiness-dashboard-server', |
164 dest='flakiness_dashboard_server', | 164 dest='flakiness_dashboard_server', |
165 help=argparse.SUPPRESS) | 165 help=argparse.SUPPRESS) |
| 166 parser.add_argument( |
| 167 '--gs-results-bucket', |
| 168 help='Google Storage bucket to upload results to.') |
| 169 |
166 | 170 |
167 parser.add_argument( | 171 parser.add_argument( |
168 '--output-directory', | 172 '--output-directory', |
169 dest='output_directory', type=os.path.realpath, | 173 dest='output_directory', type=os.path.realpath, |
170 help='Path to the directory in which build files are' | 174 help='Path to the directory in which build files are' |
171 ' located (must include build type). This will take' | 175 ' located (must include build type). This will take' |
172 ' precedence over --debug and --release') | 176 ' precedence over --debug and --release') |
173 parser.add_argument( | 177 parser.add_argument( |
174 '--repeat', '--gtest_repeat', '--gtest-repeat', | 178 '--repeat', '--gtest_repeat', '--gtest-repeat', |
175 dest='repeat', type=int, default=0, | 179 dest='repeat', type=int, default=0, |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 if e.is_infra_error: | 920 if e.is_infra_error: |
917 return constants.INFRA_EXIT_CODE | 921 return constants.INFRA_EXIT_CODE |
918 return constants.ERROR_EXIT_CODE | 922 return constants.ERROR_EXIT_CODE |
919 except: # pylint: disable=W0702 | 923 except: # pylint: disable=W0702 |
920 logging.exception('Unrecognized error occurred.') | 924 logging.exception('Unrecognized error occurred.') |
921 return constants.ERROR_EXIT_CODE | 925 return constants.ERROR_EXIT_CODE |
922 | 926 |
923 | 927 |
924 if __name__ == '__main__': | 928 if __name__ == '__main__': |
925 sys.exit(main()) | 929 sys.exit(main()) |
OLD | NEW |