Scrub step names to avoid breaking buildbot features.

Review URL: https://chromiumcodereview.appspot.com//10919182

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12096 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
ahe@google.com 2012-09-09 18:06:38 +00:00
parent 6cd6d6f6c5
commit ebd6307d57

View file

@ -100,9 +100,16 @@ def GetBuildInfo():
def NeedsXterm(compiler, runtime):
return runtime in ['ie', 'chrome', 'safari', 'opera', 'ff', 'drt']
def TestStepName(name, flags):
# Filter out flags with '=' as this breaks the /stats feature of the
# build bot.
flags = [x for x in flags if not '=' in x]
return '%s tests %s' % (name, ' '.join(flags))
def TestStep(name, mode, system, compiler, runtime, targets, flags):
print '@@@BUILD_STEP %s %s tests: %s %s@@@' % (name, compiler, runtime,
' '.join(flags))
print '@@@BUILD_STEP %s@@@' % TestStepName(name, flags)
sys.stdout.flush()
if NeedsXterm(compiler, runtime) and system == 'linux':
cmd = ['xvfb-run', '-a']