diff options
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-03 18:35:35 +0000 |
---|---|---|
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-03 18:35:35 +0000 |
commit | 50d6862fdbc4dfe449b6be698fd9d0b42809533a (patch) | |
tree | f5a018ccd7445da02e151861e33130923883ada9 | |
parent | cf307b1ccb11811de6d96439a099a67edb13766a (diff) |
Make submit_try accept space- or comma-separated list
(SkipBuildbotRuns)
Review URL: https://codereview.chromium.org/13535005
git-svn-id: http://skia.googlecode.com/svn/trunk@8521 2bbb7eff-a529-9590-31e7-b0007b416f81
-rwxr-xr-x | tools/submit_try | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/submit_try b/tools/submit_try index 5c3c3e5a4d..037a9f79af 100755 --- a/tools/submit_try +++ b/tools/submit_try @@ -178,16 +178,16 @@ submit_try %s--bot <buildername> [<buildername> ...] 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 @@ def main(): if __name__ == '__main__': - sys.exit(main())
\ No newline at end of file + sys.exit(main()) |