Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Unified Diff: tools/submit_try

Issue 13535005: Make submit_try accept space- or comma-separated list (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: tweak Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/submit_try
===================================================================
--- tools/submit_try (revision 8512)
+++ tools/submit_try (working copy)
@@ -178,16 +178,16 @@
Error('You must specify a builder with "--bot".')
using_bots = []
while argv and not argv[0].startswith('-'):
- bot = argv.pop(0)
- if bot == ALL_BUILDERS:
- if using_bots:
- Error('Cannot specify "all" with additional builder names.')
- using_bots = trybots
- break
- else:
- if not bot in trybots:
- Error('Unrecognized builder: %s' % bot)
- using_bots.append(bot)
+ for bot in argv.pop(0).split(','):
+ if bot == ALL_BUILDERS:
+ if using_bots:
+ Error('Cannot specify "all" with additional builder names.')
+ using_bots = trybots
+ break
+ else:
+ if not bot in trybots:
+ Error('Unrecognized builder: %s' % bot)
+ using_bots.append(bot)
elif arg == '-r':
if len(argv) < 1:
Error('You must specify a revision with "-r".')
@@ -261,4 +261,4 @@
if __name__ == '__main__':
- sys.exit(main())
+ sys.exit(main())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698