mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-25 19:30:04 +01:00
gtest: output alignment
This commit is contained in:
parent
1edb8a2f00
commit
825b7b5abf
@ -37,12 +37,12 @@ def gtest_results(bld):
|
||||
# print(str(out, 'utf-8'))
|
||||
output = str(out, 'utf-8').split('\n')
|
||||
for i, line in enumerate(output):
|
||||
if code and '[ RUN ]' in line:
|
||||
if '[ RUN ]' in line and code:
|
||||
if ' OK ]' in output[i + 1]:
|
||||
continue
|
||||
# \r to get colors back...
|
||||
Logs.warn('%s' % output[i + 1])
|
||||
elif code and ' FAILED ]' in line:
|
||||
elif ' FAILED ]' in line and code:
|
||||
Logs.error('%s' % line)
|
||||
elif ' PASSED ]' in line:
|
||||
Logs.info('%s' % line)
|
||||
|
Loading…
Reference in New Issue
Block a user