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

Side by Side Diff: client/tools/buildbot_annotated_steps.py

Issue 10823359: Remove second argument from python clobbering cmd on editor annotated steps (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 #!/usr/bin/python 5 #!/usr/bin/python
6 6
7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
8 # Use of this source code is governed by a BSD-style license that can be 8 # Use of this source code is governed by a BSD-style license that can be
9 # found in the LICENSE file. 9 # found in the LICENSE file.
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 print java_home 140 print java_home
141 141
142 def ClobberBuilder(): 142 def ClobberBuilder():
143 """ Clobber the builder before we do the build. 143 """ Clobber the builder before we do the build.
144 Args: 144 Args:
145 - mode: either 'debug' or 'release' 145 - mode: either 'debug' or 'release'
146 """ 146 """
147 cmd = [sys.executable, 147 cmd = [sys.executable,
148 './tools/clean_output_directory.py'] 148 './tools/clean_output_directory.py']
149 print 'Clobbering %s' % (' '.join(cmd)) 149 print 'Clobbering %s' % (' '.join(cmd))
150 return subprocess.call(cmd, env=NO_COLOR_ENV) 150 return subprocess.call(cmd)
151 151
152 def GetShouldClobber(): 152 def GetShouldClobber():
153 return os.environ.get(BUILDER_CLOBBER) == "1" 153 return os.environ.get(BUILDER_CLOBBER) == "1"
154 154
155 def main(): 155 def main():
156 print 'main' 156 print 'main'
157 if len(sys.argv) == 0: 157 if len(sys.argv) == 0:
158 print 'Script pathname not known, giving up.' 158 print 'Script pathname not known, giving up.'
159 return 1 159 return 1
160 160
(...skipping 21 matching lines...) Expand all
182 status = ProcessCompiler(name) 182 status = ProcessCompiler(name)
183 183
184 if status: 184 if status:
185 print '@@@STEP_FAILURE@@@' 185 print '@@@STEP_FAILURE@@@'
186 186
187 return status 187 return status
188 188
189 189
190 if __name__ == '__main__': 190 if __name__ == '__main__':
191 sys.exit(main()) 191 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698