OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 """Presubmit script for //content/browser/frame_host. | 4 """Presubmit script for //content/browser/frame_host. |
5 | 5 |
6 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 6 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
7 for more details about the presubmit API built into depot_tools. | 7 for more details about the presubmit API built into depot_tools. |
8 """ | 8 """ |
9 | 9 |
10 import re | 10 import re |
11 | 11 |
12 | 12 |
13 def _GetTryMasters(project, change): | 13 def _GetTryMasters(project, change): |
14 return { | 14 return { |
15 'tryserver.chromium.linux': { | 15 'master.tryserver.chromium.linux': { |
16 'linux_site_isolation': [], | 16 'linux_site_isolation': [], |
17 }, | 17 }, |
18 } | 18 } |
19 | 19 |
20 | 20 |
21 def GetPreferredTryMasters(project, change): | 21 def GetPreferredTryMasters(project, change): |
22 # TODO(nick, dcheng): Using the value of _GetTryMasters() instead of an empty | 22 # TODO(nick, dcheng): Using the value of _GetTryMasters() instead of an empty |
23 # value here would cause 'git cl try' to include the site isolation trybots, | 23 # value here would cause 'git cl try' to include the site isolation trybots, |
24 # which would be nice. But it has the side effect of replacing, rather than | 24 # which would be nice. But it has the side effect of replacing, rather than |
25 # augmenting, the default set of try servers. Re-enable this when we figure | 25 # augmenting, the default set of try servers. Re-enable this when we figure |
(...skipping 18 matching lines...) Expand all Loading... |
44 new_description = description | 44 new_description = description |
45 new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join( | 45 new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join( |
46 '%s:%s' % (master, ','.join(bots)) | 46 '%s:%s' % (master, ','.join(bots)) |
47 for master, bots in masters.iteritems()) | 47 for master, bots in masters.iteritems()) |
48 results.append(output_api.PresubmitNotifyResult( | 48 results.append(output_api.PresubmitNotifyResult( |
49 'Automatically added site isolation trybots to run tests on CQ.')) | 49 'Automatically added site isolation trybots to run tests on CQ.')) |
50 | 50 |
51 rietveld_obj.update_description(issue, new_description) | 51 rietveld_obj.update_description(issue, new_description) |
52 | 52 |
53 return results | 53 return results |
OLD | NEW |