2
0
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:
Syl 2014-02-20 21:36:56 +01:00
parent 1edb8a2f00
commit 825b7b5abf

View File

@ -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)