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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 | 333 |
334 test_flags = [] | 334 test_flags = [] |
335 if shard_index: | 335 if shard_index: |
336 test_flags = ['--shards=%s' % total_shards, '--shard=%s' % shard_index] | 336 test_flags = ['--shards=%s' % total_shards, '--shard=%s' % shard_index] |
337 | 337 |
338 # First we run all the regular tests. | 338 # First we run all the regular tests. |
339 status = TestCompiler(runtime, mode, system, option, test_flags, | 339 status = TestCompiler(runtime, mode, system, option, test_flags, |
340 is_buildbot) | 340 is_buildbot) |
341 | 341 |
342 if (status == 0 | 342 if (status == 0 |
343 and (system == 'linux' or runtime != 'chrome') | 343 and runtime != 'chrome' |
344 and runtime != 'opera' | 344 and runtime != 'opera' |
345 and runtime != 'ff' | 345 and runtime != 'ff' |
346 and runtime != 'ie' | 346 and runtime != 'ie' |
347 and runtime != 'safari'): | 347 and runtime != 'safari'): |
348 status = TestCompiler(runtime, mode, system, option, | 348 status = TestCompiler(runtime, mode, system, option, |
349 test_flags + ['--checked'], is_buildbot) | 349 test_flags + ['--checked'], is_buildbot) |
350 | 350 |
351 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) | 351 if runtime != 'd8': CleanUpTemporaryFiles(system, runtime) |
352 if status != 0: print '@@@STEP_FAILURE@@@' | 352 if status != 0: print '@@@STEP_FAILURE@@@' |
353 return status | 353 return status |
354 | 354 |
355 if __name__ == '__main__': | 355 if __name__ == '__main__': |
356 sys.exit(main()) | 356 sys.exit(main()) |
OLD | NEW |