| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 step_name = TestStepName(name, flags) | 112 step_name = TestStepName(name, flags) |
| 113 with bot.BuildStep(step_name, swallow_error=True): | 113 with bot.BuildStep(step_name, swallow_error=True): |
| 114 sys.stdout.flush() | 114 sys.stdout.flush() |
| 115 if NeedsXterm(compiler, runtime) and system == 'linux': | 115 if NeedsXterm(compiler, runtime) and system == 'linux': |
| 116 cmd = ['xvfb-run', '-a'] | 116 cmd = ['xvfb-run', '-a'] |
| 117 else: | 117 else: |
| 118 cmd = [] | 118 cmd = [] |
| 119 | 119 |
| 120 user_test = os.environ.get('USER_TEST', 'no') | 120 user_test = os.environ.get('USER_TEST', 'no') |
| 121 | 121 |
| 122 # TODO(ricow): temporary hack to run on fyi with --use_browser_controller |
| 123 if os.environ.get('BUILDBOT_SCHEDULER') == "fyi-main" and runtime='drt': |
| 124 runtime = 'chrome' |
| 125 |
| 122 cmd.extend([sys.executable, | 126 cmd.extend([sys.executable, |
| 123 os.path.join(os.curdir, 'tools', 'test.py'), | 127 os.path.join(os.curdir, 'tools', 'test.py'), |
| 124 '--step_name=' + step_name, | 128 '--step_name=' + step_name, |
| 125 '--mode=' + mode, | 129 '--mode=' + mode, |
| 126 '--compiler=' + compiler, | 130 '--compiler=' + compiler, |
| 127 '--runtime=' + runtime, | 131 '--runtime=' + runtime, |
| 128 '--time', | 132 '--time', |
| 129 '--use-sdk', | 133 '--use-sdk', |
| 130 '--report', | 134 '--report', |
| 131 '--write-debug-log']) | 135 '--write-debug-log']) |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 """ | 329 """ |
| 326 with bot.BuildStep('Build SDK and d8'): | 330 with bot.BuildStep('Build SDK and d8'): |
| 327 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 331 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 328 'dart2js_bot'] | 332 'dart2js_bot'] |
| 329 print 'Build SDK and d8: %s' % (' '.join(args)) | 333 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 330 bot.RunProcess(args) | 334 bot.RunProcess(args) |
| 331 | 335 |
| 332 | 336 |
| 333 if __name__ == '__main__': | 337 if __name__ == '__main__': |
| 334 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 338 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |