| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 user_test = os.environ.get('USER_TEST', 'no') | 114 user_test = os.environ.get('USER_TEST', 'no') |
| 115 | 115 |
| 116 cmd.extend([sys.executable, | 116 cmd.extend([sys.executable, |
| 117 os.path.join(os.curdir, 'tools', 'test.py'), | 117 os.path.join(os.curdir, 'tools', 'test.py'), |
| 118 '--step_name=' + step_name, | 118 '--step_name=' + step_name, |
| 119 '--mode=' + mode, | 119 '--mode=' + mode, |
| 120 '--compiler=' + compiler, | 120 '--compiler=' + compiler, |
| 121 '--runtime=' + runtime, | 121 '--runtime=' + runtime, |
| 122 '--time', | 122 '--time', |
| 123 '--use-sdk', | 123 '--use-sdk', |
| 124 '--report']) | 124 '--report', |
| 125 '--write-debug-log']) |
| 125 | 126 |
| 126 # TODO(ricow/kustermann): Issue 7339 | 127 # TODO(ricow/kustermann): Issue 7339 |
| 127 if runtime == "safari": | 128 if runtime == "safari": |
| 128 cmd.append('--nobatch') | 129 cmd.append('--nobatch') |
| 129 | 130 |
| 130 if user_test == 'yes': | 131 if user_test == 'yes': |
| 131 cmd.append('--progress=color') | 132 cmd.append('--progress=color') |
| 132 else: | 133 else: |
| 133 cmd.extend(['--progress=buildbot', '-v']) | 134 cmd.extend(['--progress=buildbot', '-v']) |
| 134 | 135 |
| 135 global IsFirstTestStepCall | 136 global IsFirstTestStepCall |
| 136 if IsFirstTestStepCall: | 137 if IsFirstTestStepCall: |
| 137 IsFirstTestStepCall = False | 138 IsFirstTestStepCall = False |
| 138 else: | 139 else: |
| 139 cmd.append('--append_flaky_log') | 140 cmd.append('--append_logs') |
| 140 | 141 |
| 141 if flags: | 142 if flags: |
| 142 cmd.extend(flags) | 143 cmd.extend(flags) |
| 143 cmd.extend(targets) | 144 cmd.extend(targets) |
| 144 | 145 |
| 145 print 'running %s' % (' '.join(cmd)) | 146 print 'running %s' % (' '.join(cmd)) |
| 146 bot.RunProcess(cmd) | 147 bot.RunProcess(cmd) |
| 147 | 148 |
| 148 | 149 |
| 149 def TestCompiler(runtime, mode, system, flags, is_buildbot, test_set): | 150 def TestCompiler(runtime, mode, system, flags, is_buildbot, test_set): |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 """ | 319 """ |
| 319 with bot.BuildStep('Build SDK and d8'): | 320 with bot.BuildStep('Build SDK and d8'): |
| 320 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 321 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 321 'dart2js_bot'] | 322 'dart2js_bot'] |
| 322 print 'Build SDK and d8: %s' % (' '.join(args)) | 323 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 323 bot.RunProcess(args) | 324 bot.RunProcess(args) |
| 324 | 325 |
| 325 | 326 |
| 326 if __name__ == '__main__': | 327 if __name__ == '__main__': |
| 327 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 328 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |