Mercurial > hg
comparison tests/run-tests.py @ 27393:a40b623e6380
run-tests: report timeouts in a less alarming fashion
Rather than report timed-out tests like this:
ERROR: test-convert-svn-sink.t output changed
!
..simply put a 't' rather than a '.' in the stream.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 04 Dec 2015 14:55:10 -0600 |
parents | a4e3dec3010e |
children | b4d7743e174a |
comparison
equal
deleted
inserted
replaced
27391:4eeef1b2d689 | 27393:a40b623e6380 |
---|---|
1271 | 1271 |
1272 if self._options.first: | 1272 if self._options.first: |
1273 self.stop() | 1273 self.stop() |
1274 else: | 1274 else: |
1275 with iolock: | 1275 with iolock: |
1276 if not self._options.nodiff: | 1276 if reason == "timed out": |
1277 self.stream.write('\nERROR: %s output changed\n' % test) | 1277 self.stream.write('t') |
1278 | 1278 else: |
1279 self.stream.write('!') | 1279 if not self._options.nodiff: |
1280 self.stream.write('\nERROR: %s output changed\n' % test) | |
1281 self.stream.write('!') | |
1282 | |
1280 self.stream.flush() | 1283 self.stream.flush() |
1281 | 1284 |
1282 def addSuccess(self, test): | 1285 def addSuccess(self, test): |
1283 with iolock: | 1286 with iolock: |
1284 super(TestResult, self).addSuccess(test) | 1287 super(TestResult, self).addSuccess(test) |