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

Side by Side Diff: scripts/slave/chromium/dart_buildbot_run.py

Issue 450923002: Use exitcode of running the annotated steps script (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Created 6 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 """Entry point for the dartium buildbots. 6 """Entry point for the dartium buildbots.
7 7
8 This script is called from buildbot and reports results using the buildbot 8 This script is called from buildbot and reports results using the buildbot
9 annotation scheme. 9 annotation scheme.
10 """ 10 """
11 11
12 import os 12 import os
13 import sys 13 import sys
14 14
15 from common import chromium_utils 15 from common import chromium_utils
16 16
17 def main(): 17 def main():
18 builder_name = os.getenv('BUILDBOT_BUILDERNAME', default='') 18 builder_name = os.getenv('BUILDBOT_BUILDERNAME', default='')
19 19
20 # Temporary until 1.6 ships on stable. 20 # Temporary until 1.6 ships on stable.
21 if builder_name.endswith('-be') or builder_name.endswith("-dev"): 21 if builder_name.endswith('-be') or builder_name.endswith("-dev"):
22 script = 'src/dart/tools/dartium/buildbot_annotated_steps.py' 22 script = 'src/dart/tools/dartium/buildbot_annotated_steps.py'
23 else: 23 else:
24 script = 'src/dartium_tools/buildbot_annotated_steps.py' 24 script = 'src/dartium_tools/buildbot_annotated_steps.py'
25 chromium_utils.RunCommand([sys.executable, script]) 25 result = chromium_utils.RunCommand([sys.executable, script])
26 26
27 if result:
28 print 'Running annotated steps % failed' % script
29 return 1
27 # BIG HACK 30 # BIG HACK
28 # Normal ninja clobbering does not work due to symlinks/python on windows 31 # Normal ninja clobbering does not work due to symlinks/python on windows
29 # Full clobbering before building does not work since it will destroy 32 # Full clobbering before building does not work since it will destroy
30 # the ninja build files 33 # the ninja build files
31 # So we basically clobber at the end here 34 # So we basically clobber at the end here
32 if chromium_utils.IsWindows() and 'full' in builder_name: 35 if chromium_utils.IsWindows() and 'full' in builder_name:
33 chromium_utils.RemoveDirectory('src/out') 36 chromium_utils.RemoveDirectory('src/out')
34 return 0 37 return 0
35 38
36 if __name__ == '__main__': 39 if __name__ == '__main__':
37 sys.exit(main()) 40 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