Chromium Code Reviews| Index: git_cl.py |
| diff --git a/git_cl.py b/git_cl.py |
| index f884eaa6c655afe2b42d1c9ba67e49e8aca953fc..b95a6e52544e60bd03c093b73570fc25ea5dc059 100755 |
| --- a/git_cl.py |
| +++ b/git_cl.py |
| @@ -1591,6 +1591,14 @@ def CMDtry(parser, args): |
| (b, forced_tests) for b, t in builders_and_tests.iteritems() |
| if t != ['compile']) |
| + if any('triggered' in b for b in builders_and_tests.iterkeys()): |
|
M-A Ruel
2012/09/24 13:48:00
if any('triggered' in b for b in builders_and_test
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.\n' |
| + 'Bot list: %s' % builders_and_tests) |
| + return 1 |
| + |
| patchset = cl.GetPatchset() |
| if not cl.GetPatchset(): |
| patchset = cl.GetMostRecentPatchset(cl.GetIssue()) |