Chromium Code Reviews| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 | 132 |
| 133 # TODO(ricow/kustermann): Issue 7339 | 133 # TODO(ricow/kustermann): Issue 7339 |
| 134 if runtime == "safari": | 134 if runtime == "safari": |
| 135 cmd.append('--nobatch') | 135 cmd.append('--nobatch') |
| 136 | 136 |
| 137 if user_test == 'yes': | 137 if user_test == 'yes': |
| 138 cmd.append('--progress=color') | 138 cmd.append('--progress=color') |
| 139 else: | 139 else: |
| 140 cmd.extend(['--progress=buildbot', '-v']) | 140 cmd.extend(['--progress=buildbot', '-v']) |
| 141 | 141 |
| 142 # TODO(ricow): temporary hack to run on fyi with --use_browser_controller | |
| 143 if os.environ.get('BUILDBOT_SCHEDULER') == "fyi-main": | |
|
kustermann
2013/05/14 13:24:10
Why not using append() as the others?
| |
| 144 cmd.extend(['--use_browser_controller']) | |
| 145 | |
| 142 global IsFirstTestStepCall | 146 global IsFirstTestStepCall |
| 143 if IsFirstTestStepCall: | 147 if IsFirstTestStepCall: |
| 144 IsFirstTestStepCall = False | 148 IsFirstTestStepCall = False |
| 145 else: | 149 else: |
| 146 cmd.append('--append_logs') | 150 cmd.append('--append_logs') |
| 147 | 151 |
| 148 if flags: | 152 if flags: |
| 149 cmd.extend(flags) | 153 cmd.extend(flags) |
| 150 cmd.extend(targets) | 154 cmd.extend(targets) |
| 151 | 155 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 321 """ | 325 """ |
| 322 with bot.BuildStep('Build SDK and d8'): | 326 with bot.BuildStep('Build SDK and d8'): |
| 323 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 327 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 324 'dart2js_bot'] | 328 'dart2js_bot'] |
| 325 print 'Build SDK and d8: %s' % (' '.join(args)) | 329 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 326 bot.RunProcess(args) | 330 bot.RunProcess(args) |
| 327 | 331 |
| 328 | 332 |
| 329 if __name__ == '__main__': | 333 if __name__ == '__main__': |
| 330 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 334 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |