| 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 Shared code for use in the buildbot scripts. | 8 Shared code for use in the buildbot scripts. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 sys.exit(1) | 144 sys.exit(1) |
| 145 | 145 |
| 146 # Print out the buildinfo for easy debugging. | 146 # Print out the buildinfo for easy debugging. |
| 147 build_info.PrintBuildInfo() | 147 build_info.PrintBuildInfo() |
| 148 | 148 |
| 149 # Make sure we are in the dart directory | 149 # Make sure we are in the dart directory |
| 150 os.chdir(DART_PATH) | 150 os.chdir(DART_PATH) |
| 151 | 151 |
| 152 try: | 152 try: |
| 153 Clobber() | 153 Clobber() |
| 154 build_step(build_info) | 154 if build_step: |
| 155 build_step(build_info) |
| 155 | 156 |
| 156 custom_steps(build_info) | 157 custom_steps(build_info) |
| 157 except OSError as e: | 158 except OSError as e: |
| 158 sys.exit(e.errno) | 159 sys.exit(e.errno) |
| 159 | 160 |
| 160 sys.exit(0) | 161 sys.exit(0) |
| 161 | 162 |
| 162 | 163 |
| 163 def GetBotName(): | 164 def GetBotName(): |
| 164 """ | 165 """ |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 if exit_code != 0: | 247 if exit_code != 0: |
| 247 raise OSError(exit_code) | 248 raise OSError(exit_code) |
| 248 | 249 |
| 249 | 250 |
| 250 def GetStepName(name, flags): | 251 def GetStepName(name, flags): |
| 251 """ | 252 """ |
| 252 Filters out flags with '=' as this breaks the /stats feature of the buildbot. | 253 Filters out flags with '=' as this breaks the /stats feature of the buildbot. |
| 253 """ | 254 """ |
| 254 flags = [x for x in flags if not '=' in x] | 255 flags = [x for x in flags if not '=' in x] |
| 255 return ('%s tests %s' % (name, ' '.join(flags))).strip() | 256 return ('%s tests %s' % (name, ' '.join(flags))).strip() |
| OLD | NEW |