| 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 """Dart frog buildbot steps | 7 """Dart frog buildbot steps |
| 8 | 8 |
| 9 Runs tests for the frog or dart2js compiler. | 9 Runs tests for the frog or dart2js compiler. |
| 10 """ | 10 """ |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 compiler = frog_pattern.group(1) | 80 compiler = frog_pattern.group(1) |
| 81 runtime = 'd8' | 81 runtime = 'd8' |
| 82 system = frog_pattern.group(2) | 82 system = frog_pattern.group(2) |
| 83 mode = frog_pattern.group(3) | 83 mode = frog_pattern.group(3) |
| 84 | 84 |
| 85 elif web_pattern: | 85 elif web_pattern: |
| 86 compiler = 'dart2js' | 86 compiler = 'dart2js' |
| 87 runtime = web_pattern.group(1) | 87 runtime = web_pattern.group(1) |
| 88 system = web_pattern.group(2) | 88 system = web_pattern.group(2) |
| 89 mode = 'release' | 89 mode = 'release' |
| 90 shard_index = dart2js_pattern.group(3) | 90 shard_index = web_pattern.group(3) |
| 91 total_shards = dart2js_pattern.group(4) | 91 total_shards = web_pattern.group(4) |
| 92 | 92 |
| 93 if system == 'windows': | 93 if system == 'windows': |
| 94 system = 'win7' | 94 system = 'win7' |
| 95 | 95 |
| 96 if (system == 'win7' and platform.system() != 'Windows') or ( | 96 if (system == 'win7' and platform.system() != 'Windows') or ( |
| 97 system == 'mac' and platform.system() != 'Darwin') or ( | 97 system == 'mac' and platform.system() != 'Darwin') or ( |
| 98 system == 'linux' and platform.system() != 'Linux'): | 98 system == 'linux' and platform.system() != 'Linux'): |
| 99 print ('Error: You cannot emulate a buildbot with a platform different ' | 99 print ('Error: You cannot emulate a buildbot with a platform different ' |
| 100 'from your own.') | 100 'from your own.') |
| 101 sys.exit(1) | 101 sys.exit(1) |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 if status == 0 and compiler != 'dart2js': | 281 if status == 0 and compiler != 'dart2js': |
| 282 status = TestCompiler(compiler, runtime, mode, system, option, | 282 status = TestCompiler(compiler, runtime, mode, system, option, |
| 283 test_flags + ['--checked']) | 283 test_flags + ['--checked']) |
| 284 | 284 |
| 285 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) | 285 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) |
| 286 if status != 0: print '@@@STEP_FAILURE@@@' | 286 if status != 0: print '@@@STEP_FAILURE@@@' |
| 287 return status | 287 return status |
| 288 | 288 |
| 289 if __name__ == '__main__': | 289 if __name__ == '__main__': |
| 290 sys.exit(main()) | 290 sys.exit(main()) |
| OLD | NEW |