compile_test.py: fix error/warning output duplication
This commit is contained in:
parent
5813db3249
commit
d0f23b8a3e
|
@ -65,12 +65,12 @@ def get_results_and_output_from(fd):
|
|||
if prev_results:
|
||||
yield (' .. '.join(result[:-1]), result[-1], output)
|
||||
prev_results = True
|
||||
output = StringIO()
|
||||
result = line[len(results_prefix):].rstrip().split(' .. ')[::-1]
|
||||
if (len(result) > 1) and ('success' in result[0] or 'failed' in result[0]):
|
||||
stdout.write('.')
|
||||
stdout.flush()
|
||||
elif line.startswith(output_prefix):
|
||||
output = StringIO()
|
||||
output.write(line)
|
||||
read_more_output = True
|
||||
elif read_more_output:
|
||||
|
|
Loading…
Reference in New Issue