Mercurial > hg
comparison tests/run-tests.py @ 28127:807bc140e915
run-tests: remove useless "failed" flag from addOutputMismatch()
It never be set to True.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 09 Jan 2016 13:22:26 +0900 |
parents | 562a073a2a1b |
children | 85e28a46c7f1 |
comparison
equal
deleted
inserted
replaced
28126:562a073a2a1b | 28127:807bc140e915 |
---|---|
1348 # printed, we're just stale and probably failed due to our | 1348 # printed, we're just stale and probably failed due to our |
1349 # temp dir getting cleaned up. | 1349 # temp dir getting cleaned up. |
1350 return | 1350 return |
1351 | 1351 |
1352 accepted = False | 1352 accepted = False |
1353 failed = False | |
1354 lines = [] | 1353 lines = [] |
1355 | 1354 |
1356 with iolock: | 1355 with iolock: |
1357 if self._options.nodiff: | 1356 if self._options.nodiff: |
1358 pass | 1357 pass |
1389 if test.name.endswith('.t'): | 1388 if test.name.endswith('.t'): |
1390 rename(test.errpath, test.path) | 1389 rename(test.errpath, test.path) |
1391 else: | 1390 else: |
1392 rename(test.errpath, '%s.out' % test.path) | 1391 rename(test.errpath, '%s.out' % test.path) |
1393 accepted = True | 1392 accepted = True |
1394 if not accepted and not failed: | 1393 if not accepted: |
1395 self.faildata[test.name] = b''.join(lines) | 1394 self.faildata[test.name] = b''.join(lines) |
1396 | 1395 |
1397 return accepted | 1396 return accepted |
1398 | 1397 |
1399 def startTest(self, test): | 1398 def startTest(self, test): |