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

Unified Diff: client/tools/buildbot_annotated_steps.py

Issue 10829351: Fix dart editor buildbot scripts to support clobbering. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/clean_output_directory.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tools/buildbot_annotated_steps.py
===================================================================
--- client/tools/buildbot_annotated_steps.py (revision 10787)
+++ client/tools/buildbot_annotated_steps.py (working copy)
@@ -138,7 +138,19 @@
print 'Setting java home to'
print java_home
+def ClobberBuilder():
+ """ Clobber the builder before we do the build.
+ Args:
+ - mode: either 'debug' or 'release'
+ """
+ cmd = [sys.executable,
+ './tools/clean_output_directory.py']
+ print 'Clobbering %s' % (' '.join(cmd))
+ return subprocess.call(cmd, env=NO_COLOR_ENV)
+def GetShouldClobber():
+ return os.environ.get(BUILDER_CLOBBER) == "1"
+
def main():
print 'main'
if len(sys.argv) == 0:
@@ -149,6 +161,14 @@
# Get at the top-level directory. This script is in client/tools
os.chdir(os.path.abspath(os.path.join(scriptdir, os.pardir, os.pardir)))
+ if GetShouldClobber():
+ print '@@@BUILD_STEP Clobber@@@'
+ status = ClobberBuilder()
+ if status != 0:
+ print '@@@STEP_FAILURE@@@'
+ return status
+
+
#TODO(sigmund): remove this indirection once we update our bots
(name, version) = GetBuildInfo()
if name.startswith('dart-editor'):
« no previous file with comments | « no previous file | tools/clean_output_directory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698