OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # 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 |
11 import optparse | 11 import optparse |
12 import os | 12 import os |
13 from os.path import abspath | 13 from os.path import abspath |
14 from os.path import dirname | 14 from os.path import dirname |
15 import subprocess | 15 import subprocess |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 if exit_code != 0: | 230 if exit_code != 0: |
231 raise OSError(exit_code) | 231 raise OSError(exit_code) |
232 | 232 |
233 | 233 |
234 def GetStepName(name, flags): | 234 def GetStepName(name, flags): |
235 """ | 235 """ |
236 Filters out flags with '=' as this breaks the /stats feature of the buildbot. | 236 Filters out flags with '=' as this breaks the /stats feature of the buildbot. |
237 """ | 237 """ |
238 flags = [x for x in flags if not '=' in x] | 238 flags = [x for x in flags if not '=' in x] |
239 return ('%s tests %s' % (name, ' '.join(flags))).strip() | 239 return ('%s tests %s' % (name, ' '.join(flags))).strip() |
OLD | NEW |