Bug 1020514 - Make mach colorize lines that start with REFTEST TEST-UNEXPECTED-FAIL etc. r=gps.
This commit is contained in:
@@ -110,6 +110,10 @@ class StructuredTerminalFormatter(StructuredHumanFormatter):
|
||||
|
||||
result = s
|
||||
|
||||
reftest = s.startswith('REFTEST ')
|
||||
if reftest:
|
||||
s = s[8:]
|
||||
|
||||
if s.startswith('TEST-PASS'):
|
||||
result = self.terminal.green(s[0:9]) + s[9:]
|
||||
elif s.startswith('TEST-UNEXPECTED'):
|
||||
@@ -119,6 +123,9 @@ class StructuredTerminalFormatter(StructuredHumanFormatter):
|
||||
elif s.startswith('TEST-INFO'):
|
||||
result = self.terminal.yellow(s[0:9]) + s[9:]
|
||||
|
||||
if reftest:
|
||||
result = 'REFTEST ' + result
|
||||
|
||||
return result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user