OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 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 | 7 |
8 """ | 8 """ |
9 submit_try: Submit a try request. | 9 submit_try: Submit a try request. |
10 | 10 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 using_bots = None | 166 using_bots = None |
167 changelist = None | 167 changelist = None |
168 revision = None | 168 revision = None |
169 | 169 |
170 while argv: | 170 while argv: |
171 arg = argv.pop(0) | 171 arg = argv.pop(0) |
172 if arg == '-h' or arg == '--help': | 172 if arg == '-h' or arg == '--help': |
173 Error() | 173 Error() |
174 elif arg == '-l' or arg == '--list_bots': | 174 elif arg == '-l' or arg == '--list_bots': |
175 format_args = ['\n '.join(trybots)] + ALL_ALIASES | 175 format_args = ['\n '.join(sorted(trybots))] + ALL_ALIASES |
176 print ( | 176 print ( |
177 """ | 177 """ |
178 submit_try: Available builders:\n %s | 178 submit_try: Available builders:\n %s |
179 | 179 |
180 Can also use the following aliases to run on groups of builders- | 180 Can also use the following aliases to run on groups of builders- |
181 %s: Will run against all trybots. | 181 %s: Will run against all trybots. |
182 %s: Will run against all compile trybots. | 182 %s: Will run against all compile trybots. |
183 %s: Will run against the same trybots as the commit queue. | 183 %s: Will run against the same trybots as the commit queue. |
184 %s: You will be prompted to enter a regex to select builders with. | 184 %s: You will be prompted to enter a regex to select builders with. |
185 | 185 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 292 |
293 # Parse and validate the command-line arguments. | 293 # Parse and validate the command-line arguments. |
294 args = ValidateArgs(sys.argv[1:], trybots=trybots, is_svn=is_svn) | 294 args = ValidateArgs(sys.argv[1:], trybots=trybots, is_svn=is_svn) |
295 | 295 |
296 # Submit the try request. | 296 # Submit the try request. |
297 SubmitTryRequest(args, is_svn=is_svn) | 297 SubmitTryRequest(args, is_svn=is_svn) |
298 | 298 |
299 | 299 |
300 if __name__ == '__main__': | 300 if __name__ == '__main__': |
301 sys.exit(main()) | 301 sys.exit(main()) |
OLD | NEW |