gtest: output alignment

This commit is contained in:
Syl 2014-02-20 21:36:56 +01:00
parent 1edb8a2f00
commit 825b7b5abf
1 changed files with 2 additions and 2 deletions

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)