| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 '-v', '--time', '--use-sdk', '--report' | 234 '-v', '--time', '--use-sdk', '--report' |
| 235 ] | 235 ] |
| 236 | 236 |
| 237 if build_info.checked: | 237 if build_info.checked: |
| 238 cmd.append('--checked') | 238 cmd.append('--checked') |
| 239 | 239 |
| 240 cmd.extend(flags) | 240 cmd.extend(flags) |
| 241 cmd.extend(targets) | 241 cmd.extend(targets) |
| 242 | 242 |
| 243 print 'Running: %s' % (' '.join(map(lambda arg: '"%s"' % arg, cmd))) | 243 print 'Running: %s' % (' '.join(map(lambda arg: '"%s"' % arg, cmd))) |
| 244 sys.stdout.flush() |
| 244 RunProcess(cmd) | 245 RunProcess(cmd) |
| 245 | 246 |
| 246 | 247 |
| 247 def RunTestRunner(build_info, path): | 248 def RunTestRunner(build_info, path): |
| 248 """ | 249 """ |
| 249 Runs the test package's runner on the package at 'path'. | 250 Runs the test package's runner on the package at 'path'. |
| 250 """ | 251 """ |
| 251 sdk_bin = os.path.join( | 252 sdk_bin = os.path.join( |
| 252 bot_utils.DART_DIR, | 253 bot_utils.DART_DIR, |
| 253 utils.GetBuildSdkBin(BUILD_OS, build_info.mode, build_info.arch)) | 254 utils.GetBuildSdkBin(BUILD_OS, build_info.mode, build_info.arch)) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 284 if exit_code != 0: | 285 if exit_code != 0: |
| 285 raise OSError(exit_code) | 286 raise OSError(exit_code) |
| 286 | 287 |
| 287 | 288 |
| 288 def GetStepName(name, flags): | 289 def GetStepName(name, flags): |
| 289 """ | 290 """ |
| 290 Filters out flags with '=' as this breaks the /stats feature of the buildbot. | 291 Filters out flags with '=' as this breaks the /stats feature of the buildbot. |
| 291 """ | 292 """ |
| 292 flags = [x for x in flags if not '=' in x] | 293 flags = [x for x in flags if not '=' in x] |
| 293 return ('%s tests %s' % (name, ' '.join(flags))).strip() | 294 return ('%s tests %s' % (name, ' '.join(flags))).strip() |
| OLD | NEW |