| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 os.path.join(os.curdir, 'tools', 'test.py'), | 150 os.path.join(os.curdir, 'tools', 'test.py'), |
| 151 '--step_name=' + step_name, | 151 '--step_name=' + step_name, |
| 152 '--mode=' + mode, | 152 '--mode=' + mode, |
| 153 '--compiler=' + compiler, | 153 '--compiler=' + compiler, |
| 154 '--runtime=' + runtime, | 154 '--runtime=' + runtime, |
| 155 '--time', | 155 '--time', |
| 156 '--use-sdk', | 156 '--use-sdk', |
| 157 '--report', | 157 '--report', |
| 158 '--write-debug-log']) | 158 '--write-debug-log']) |
| 159 | 159 |
| 160 # TODO(ricow/kustermann): Issue 7339 | |
| 161 if runtime == "safari": | |
| 162 cmd.append('--nobatch') | |
| 163 | |
| 164 if user_test == 'yes': | 160 if user_test == 'yes': |
| 165 cmd.append('--progress=color') | 161 cmd.append('--progress=color') |
| 166 else: | 162 else: |
| 167 cmd.extend(['--progress=buildbot', '-v']) | 163 cmd.extend(['--progress=buildbot', '-v']) |
| 168 | 164 |
| 169 if UseBrowserController(runtime, system): | 165 if UseBrowserController(runtime, system): |
| 170 cmd.append('--use_browser_controller') | 166 cmd.append('--use_browser_controller') |
| 171 | 167 |
| 172 global IsFirstTestStepCall | 168 global IsFirstTestStepCall |
| 173 if IsFirstTestStepCall: | 169 if IsFirstTestStepCall: |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 """ | 375 """ |
| 380 with bot.BuildStep('Build SDK and d8'): | 376 with bot.BuildStep('Build SDK and d8'): |
| 381 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 377 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 382 'dart2js_bot'] | 378 'dart2js_bot'] |
| 383 print 'Build SDK and d8: %s' % (' '.join(args)) | 379 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 384 bot.RunProcess(args) | 380 bot.RunProcess(args) |
| 385 | 381 |
| 386 | 382 |
| 387 if __name__ == '__main__': | 383 if __name__ == '__main__': |
| 388 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 384 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |