Skip to content

Commit

Permalink
Merge pull request #3472 from phiros/dist_fix_compile_test_error_warn…
Browse files Browse the repository at this point in the history
…ing_duplication

compile_test.py: fix error/warning output duplication
  • Loading branch information
OlegHahm committed Jul 23, 2015
2 parents a1633d8 + d0f23b8 commit 976410d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/tools/compile_test/compile_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 976410d

Please sign in to comment.