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

Side by Side Diff: tools/bots/bot.py

Issue 157223004: Add annotated steps for src tarball creation bot (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 """ 7 """
8 Shared code for use in the buildbot scripts. 8 Shared code for use in the buildbot scripts.
9 """ 9 """
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 sys.exit(1) 144 sys.exit(1)
145 145
146 # Print out the buildinfo for easy debugging. 146 # Print out the buildinfo for easy debugging.
147 build_info.PrintBuildInfo() 147 build_info.PrintBuildInfo()
148 148
149 # Make sure we are in the dart directory 149 # Make sure we are in the dart directory
150 os.chdir(DART_PATH) 150 os.chdir(DART_PATH)
151 151
152 try: 152 try:
153 Clobber() 153 Clobber()
154 build_step(build_info) 154 if build_step:
155 build_step(build_info)
155 156
156 custom_steps(build_info) 157 custom_steps(build_info)
157 except OSError as e: 158 except OSError as e:
158 sys.exit(e.errno) 159 sys.exit(e.errno)
159 160
160 sys.exit(0) 161 sys.exit(0)
161 162
162 163
163 def GetBotName(): 164 def GetBotName():
164 """ 165 """
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 if exit_code != 0: 247 if exit_code != 0:
247 raise OSError(exit_code) 248 raise OSError(exit_code)
248 249
249 250
250 def GetStepName(name, flags): 251 def GetStepName(name, flags):
251 """ 252 """
252 Filters out flags with '=' as this breaks the /stats feature of the buildbot. 253 Filters out flags with '=' as this breaks the /stats feature of the buildbot.
253 """ 254 """
254 flags = [x for x in flags if not '=' in x] 255 flags = [x for x in flags if not '=' in x]
255 return ('%s tests %s' % (name, ' '.join(flags))).strip() 256 return ('%s tests %s' % (name, ' '.join(flags))).strip()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698