Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import re | 7 import re |
| 8 import sys | 8 import sys |
| 9 | 9 |
| 10 import bot | 10 import bot |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 | 84 |
| 85 with bot.BuildStep('execute tests'): | 85 with bot.BuildStep('execute tests'): |
| 86 run(test_args) | 86 run(test_args) |
| 87 | 87 |
| 88 with bot.BuildStep('execute checked_tests'): | 88 with bot.BuildStep('execute checked_tests'): |
| 89 run(test_args + ['--checked', '--append_logs']) | 89 run(test_args + ['--checked', '--append_logs']) |
| 90 finally: | 90 finally: |
| 91 for path in temporary_files: | 91 for path in temporary_files: |
| 92 if os.path.exists(path): | 92 if os.path.exists(path): |
| 93 os.remove(path) | 93 os.remove(path) |
| 94 # We alwasy clobber this to save disk on the arm board. | |
|
Bill Hesse
2014/06/24 10:33:02
always
| |
| 95 bot.Clobber(force=True) | |
| 94 | 96 |
| 95 def main(): | 97 def main(): |
| 96 name, is_buildbot = bot.GetBotName() | 98 name, is_buildbot = bot.GetBotName() |
| 97 | 99 |
| 98 cross_vm_pattern_match = re.match(CROSS_VM, name) | 100 cross_vm_pattern_match = re.match(CROSS_VM, name) |
| 99 target_vm_pattern_match = re.match(TARGET_VM, name) | 101 target_vm_pattern_match = re.match(TARGET_VM, name) |
| 100 if cross_vm_pattern_match: | 102 if cross_vm_pattern_match: |
| 101 arch = cross_vm_pattern_match.group(1) | 103 arch = cross_vm_pattern_match.group(1) |
| 102 mode = cross_vm_pattern_match.group(2) | 104 mode = cross_vm_pattern_match.group(2) |
| 103 cross_compiling_builder(arch, mode) | 105 cross_compiling_builder(arch, mode) |
| 104 elif target_vm_pattern_match: | 106 elif target_vm_pattern_match: |
| 105 arch = target_vm_pattern_match.group(1) | 107 arch = target_vm_pattern_match.group(1) |
| 106 mode = target_vm_pattern_match.group(2) | 108 mode = target_vm_pattern_match.group(2) |
| 107 target_builder(arch, mode) | 109 target_builder(arch, mode) |
| 108 else: | 110 else: |
| 109 raise Exception("Unknown builder name %s" % name) | 111 raise Exception("Unknown builder name %s" % name) |
| 110 | 112 |
| 111 if __name__ == '__main__': | 113 if __name__ == '__main__': |
| 112 try: | 114 try: |
| 113 sys.exit(main()) | 115 sys.exit(main()) |
| 114 except OSError as e: | 116 except OSError as e: |
| 115 sys.exit(e.errno) | 117 sys.exit(e.errno) |
| OLD | NEW |