From 1afdb9bb73f59094eb0736242c60e6cd8c710b91 Mon Sep 17 00:00:00 2001 From: Syl Date: Tue, 4 Mar 2014 21:26:07 +0100 Subject: [PATCH] gtest: fixed multiline output --- playground/gtest/wscript | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/playground/gtest/wscript b/playground/gtest/wscript index ac832c18..17e16b08 100644 --- a/playground/gtest/wscript +++ b/playground/gtest/wscript @@ -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: