mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
gtest: fixed multiline output
This commit is contained in:
parent
66c28e3578
commit
1afdb9bb73
@ -38,10 +38,12 @@ def gtest_results(bld):
|
||||
output = str(out, 'utf-8').split('\n')
|
||||
for i, line in enumerate(output):
|
||||
if '[ RUN ]' in line and code:
|
||||
if ' OK ]' in output[i + 1]:
|
||||
i += 1
|
||||
if ' OK ]' in output[i]:
|
||||
continue
|
||||
# \r to get colors back...
|
||||
Logs.warn('%s' % output[i + 1])
|
||||
while not '[ ' in output[i]:
|
||||
Logs.warn('%s' % output[i])
|
||||
i += 1
|
||||
elif ' FAILED ]' in line and code:
|
||||
Logs.error('%s' % line)
|
||||
elif ' PASSED ]' in line:
|
||||
|
Loading…
Reference in New Issue
Block a user