mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1020514 - Make mach colorize lines that start with REFTEST TEST-UNEXPECTED-FAIL etc. r=gps.
This commit is contained in:
parent
81479095ed
commit
96b03e8726
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user