Mercurial > hg-stable
changeset 22146:58b5196cce20 stable
run-tests: fix some io ordering
backported from default
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 13 Aug 2014 18:50:35 -0500 |
parents | 90c8b36d1a2e |
children | 9ac98c2aa95c |
files | tests/run-tests.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Wed Aug 13 14:05:08 2014 -0500 +++ b/tests/run-tests.py Wed Aug 13 18:50:35 2014 -0500 @@ -1081,6 +1081,7 @@ def addFailure(self, test, reason): self.failures.append((test, reason)) + iolock.acquire() if self._options.first: self.stop() else: @@ -1088,6 +1089,8 @@ self.stream.write('\nERROR: %s output changed\n' % test) self.stream.write('!') + self.stream.flush() + iolock.release() def addError(self, *args, **kwargs): super(TestResult, self).addError(*args, **kwargs)