mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-29 05:21:23 +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'))
|
# print(str(out, 'utf-8'))
|
||||||
output = str(out, 'utf-8').split('\n')
|
output = str(out, 'utf-8').split('\n')
|
||||||
for i, line in enumerate(output):
|
for i, line in enumerate(output):
|
||||||
if code and '[ RUN ]' in line:
|
if '[ RUN ]' in line and code:
|
||||||
if ' OK ]' in output[i + 1]:
|
if ' OK ]' in output[i + 1]:
|
||||||
continue
|
continue
|
||||||
# \r to get colors back...
|
# \r to get colors back...
|
||||||
Logs.warn('%s' % output[i + 1])
|
Logs.warn('%s' % output[i + 1])
|
||||||
elif code and ' FAILED ]' in line:
|
elif ' FAILED ]' in line and code:
|
||||||
Logs.error('%s' % line)
|
Logs.error('%s' % line)
|
||||||
elif ' PASSED ]' in line:
|
elif ' PASSED ]' in line:
|
||||||
Logs.info('%s' % line)
|
Logs.info('%s' % line)
|
||||||
|
Loading…
Reference in New Issue
Block a user