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

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

Issue 8776005: Only build 'compiler' (ie dartc) when running chromium tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 if pipe.returncode == 0: 69 if pipe.returncode == 0:
70 version = output[0] 70 version = output[0]
71 else: 71 else:
72 version = 'unknown' 72 version = 'unknown'
73 return (name, version, component, mode, platform) 73 return (name, version, component, mode, platform)
74 74
75 75
76 def RunDartcCompiler(mode, outdir): 76 def RunDartcCompiler(mode, outdir):
77 """Compiles the client code to javascript for dartc tests.""" 77 """Compiles the client code to javascript for dartc tests."""
78 return subprocess.call( 78 return subprocess.call(
79 [sys.executable, './tools/build.py', '--mode=' + mode]) 79 [sys.executable, './tools/build.py', '--mode=' + mode, 'compiler'])
80 80
81 def RunBrowserTests(component, mode, platform): 81 def RunBrowserTests(component, mode, platform):
82 """Runs the Dart client tests.""" 82 """Runs the Dart client tests."""
83 if platform == 'linux': 83 if platform == 'linux':
84 cmd = ['xvfb-run'] 84 cmd = ['xvfb-run']
85 else: 85 else:
86 cmd = [] 86 cmd = []
87 cmd += [sys.executable, './tools/test.py', 87 cmd += [sys.executable, './tools/test.py',
88 '--component=' + component, '--mode=' + mode, 88 '--component=' + component, '--mode=' + mode,
89 '--time', '--report', '--progress=buildbot', '-v'] 89 '--time', '--report', '--progress=buildbot', '-v']
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 status = ProcessDartClientTests(component, mode, platform, name) 196 status = ProcessDartClientTests(component, mode, platform, name)
197 197
198 if status: 198 if status:
199 print '@@@STEP_FAILURE@@@' 199 print '@@@STEP_FAILURE@@@'
200 200
201 return status 201 return status
202 202
203 203
204 if __name__ == '__main__': 204 if __name__ == '__main__':
205 sys.exit(main()) 205 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