Simple python script:
for i in range(0, 5): print "ok" sys.stderr.write('err\r\n')
When executing this script under TeamCity (build step), following output appears in Build Log tab:
ok err ok ok ok err ok err err err
Messages go in wrong completely random order.
Please suggest how to make messages go in same order they are written to output.
It's a known issue, please star/vote.