Bug 1140394 - Protect standard output from interleaving. r=ahal

This commit is contained in:
Alexandre Lissy 2015-04-12 14:01:00 -04:00
parent dec04be154
commit d31eed60e1

View File

@ -161,7 +161,9 @@ class B2GDesktopReftest(RefTest):
return cmd, args
def _on_output(self, line):
print(line)
sys.stdout.write("%s\n" % line)
sys.stdout.flush()
# TODO use structured logging
if "TEST-START" in line and "|" in line:
self.last_test = line.split("|")[1].strip()