| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """Dart2js buildbot steps | 7 """Dart2js buildbot steps |
| 8 | 8 |
| 9 Runs tests for the dart2js compiler. | 9 Runs tests for the dart2js compiler. |
| 10 """ | 10 """ |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 step_name = TestStepName(name, flags) | 160 step_name = TestStepName(name, flags) |
| 161 print '@@@BUILD_STEP %s@@@' % step_name | 161 print '@@@BUILD_STEP %s@@@' % step_name |
| 162 sys.stdout.flush() | 162 sys.stdout.flush() |
| 163 if NeedsXterm(compiler, runtime) and system == 'linux': | 163 if NeedsXterm(compiler, runtime) and system == 'linux': |
| 164 cmd = ['xvfb-run', '-a'] | 164 cmd = ['xvfb-run', '-a'] |
| 165 else: | 165 else: |
| 166 cmd = [] | 166 cmd = [] |
| 167 | 167 |
| 168 user_test = os.environ.get('USER_TEST', 'no') | 168 user_test = os.environ.get('USER_TEST', 'no') |
| 169 | 169 |
| 170 if runtime == 'ie': |
| 171 runtime = 'ie9' # TODO(efortuna): Fix with issue 6003. |
| 170 cmd.extend([sys.executable, | 172 cmd.extend([sys.executable, |
| 171 os.path.join(os.curdir, 'tools', 'test.py'), | 173 os.path.join(os.curdir, 'tools', 'test.py'), |
| 172 '--step_name=' + step_name, | 174 '--step_name=' + step_name, |
| 173 '--mode=' + mode, | 175 '--mode=' + mode, |
| 174 '--compiler=' + compiler, | 176 '--compiler=' + compiler, |
| 175 '--runtime=' + runtime, | 177 '--runtime=' + runtime, |
| 176 '--time', | 178 '--time', |
| 177 '--use-sdk', | 179 '--use-sdk', |
| 178 '--report']) | 180 '--report']) |
| 179 | 181 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 build_info.is_buildbot, | 406 build_info.is_buildbot, |
| 405 build_info.test_set) | 407 build_info.test_set) |
| 406 | 408 |
| 407 if build_info.runtime != 'd8': CleanUpTemporaryFiles(build_info.system, | 409 if build_info.runtime != 'd8': CleanUpTemporaryFiles(build_info.system, |
| 408 build_info.runtime) | 410 build_info.runtime) |
| 409 if status != 0: print '@@@STEP_FAILURE@@@' | 411 if status != 0: print '@@@STEP_FAILURE@@@' |
| 410 return status | 412 return status |
| 411 | 413 |
| 412 if __name__ == '__main__': | 414 if __name__ == '__main__': |
| 413 sys.exit(main()) | 415 sys.exit(main()) |
| OLD | NEW |