OLD | NEW |
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 Dart2js buildbot steps | 8 Dart2js buildbot steps |
9 | 9 |
10 Runs tests for the dart2js compiler. | 10 Runs tests for the dart2js compiler. |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 '--use-sdk', | 195 '--use-sdk', |
196 '--report', | 196 '--report', |
197 '--write-debug-log', | 197 '--write-debug-log', |
198 '--write-test-outcome-log']) | 198 '--write-test-outcome-log']) |
199 | 199 |
200 if user_test == 'yes': | 200 if user_test == 'yes': |
201 cmd.append('--progress=color') | 201 cmd.append('--progress=color') |
202 else: | 202 else: |
203 cmd.extend(['--progress=buildbot', '-v']) | 203 cmd.extend(['--progress=buildbot', '-v']) |
204 | 204 |
205 cmd.append('--reset-browser-configuration') | 205 cmd.append('--clear_browser_cache') |
206 | 206 |
207 global IsFirstTestStepCall | 207 global IsFirstTestStepCall |
208 if IsFirstTestStepCall: | 208 if IsFirstTestStepCall: |
209 IsFirstTestStepCall = False | 209 IsFirstTestStepCall = False |
210 else: | 210 else: |
211 cmd.append('--append_logs') | 211 cmd.append('--append_logs') |
212 | 212 |
213 if flags: | 213 if flags: |
214 cmd.extend(flags) | 214 cmd.extend(flags) |
215 cmd.extend(targets) | 215 cmd.extend(targets) |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 if build_info.mode == 'debug': | 411 if build_info.mode == 'debug': |
412 target = 'dart2js_bot_debug' | 412 target = 'dart2js_bot_debug' |
413 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 413 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
414 '--arch=' + build_info.arch, target] | 414 '--arch=' + build_info.arch, target] |
415 print 'Build SDK and d8: %s' % (' '.join(args)) | 415 print 'Build SDK and d8: %s' % (' '.join(args)) |
416 bot.RunProcess(args) | 416 bot.RunProcess(args) |
417 | 417 |
418 | 418 |
419 if __name__ == '__main__': | 419 if __name__ == '__main__': |
420 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 420 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
OLD | NEW |