Mercurial > public > mercurial-scm > hg-stable
diff tests/run-tests.py @ 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 | a6eddeda93f3 |
children | 3ddfb9b3fdc6 |
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)