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

Side by Side Diff: PRESUBMIT.py

Issue 251024: Add GetPreferredTrySlaves() to presubmit scripts. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/views/PRESUBMIT.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Top-level presubmit script for Chromium. 6 """Top-level presubmit script for Chromium.
7 7
8 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts 8 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
9 for more details on the presubmit API built into gcl. 9 for more details on the presubmit API built into gcl.
10 """ 10 """
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 connection = input_api.urllib2.urlopen(url_text) 136 connection = input_api.urllib2.urlopen(url_text)
137 long_text = connection.read().strip() 137 long_text = connection.read().strip()
138 connection.close() 138 connection.close()
139 except IOError: 139 except IOError:
140 pass 140 pass
141 return [output_api.PresubmitError("The tree is closed.", 141 return [output_api.PresubmitError("The tree is closed.",
142 long_text=long_text)] 142 long_text=long_text)]
143 except IOError: 143 except IOError:
144 pass 144 pass
145 return [] 145 return []
146
147
148 def GetPreferredTrySlaves():
149 return ['win', 'linux', 'mac']
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698