Chromium Code Reviews| Index: trychange.py |
| diff --git a/trychange.py b/trychange.py |
| index 39b827b10bde6d11291562a828494e5c99e172ab..1dadb8140821316277409dd87ee818eae48a6b69 100755 |
| --- a/trychange.py |
| +++ b/trychange.py |
| @@ -836,6 +836,13 @@ def TryChange(argv, |
| # If no bot is specified, either the default pool will be selected or the |
| # try server will refuse the job. Either case we don't need to interfere. |
| + if any('triggered' in b.split(':')[0] for b in options.bot): |
|
M-A Ruel
2012/09/24 13:48:00
if any('triggered' in b.split(':', 1)[0] for b in
Isaac (away)
2012/09/24 17:53:03
Changing this in split is a no-op since I am index
Isaac (away)
2012/09/24 20:45:08
Done.
|
| + print >> sys.stderr, ( |
| + 'ERROR You are trying to send a job to a triggered bot. This type of' |
| + ' bot requires an\ninitial job from a parent (usually a builder). ' |
| + 'Instead send your job to the parent.\nBot list: %s' % options.bot) |
| + return 1 |
| + |
| if options.print_bots: |
| print 'Bots which would be used:' |
| for bot in options.bot: |