TeamCity: Command error in Build Log when writing to stderr and stdout

advertisements

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.

Thanks.


It's a known issue, please star/vote.