Mercurial > hg
comparison tests/run-tests.py @ 22838:9a20f53e436f
run-tests: handle --jobs and --first gracefully
Without this change, --first causes currently-running tests to explode
in violent and surprising ways when their temporary directory gets
cleaned up. Now we just suppress failure messages from non-first
failures when running in --first mode.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Thu, 09 Oct 2014 15:10:40 -0400 |
parents | f166e08ece3b |
children | 9f0f50c63e16 |
comparison
equal
deleted
inserted
replaced
22837:2be7d5ebd4d0 | 22838:9a20f53e436f |
---|---|
1187 self.stream.flush() | 1187 self.stream.flush() |
1188 iolock.release() | 1188 iolock.release() |
1189 | 1189 |
1190 def addOutputMismatch(self, test, ret, got, expected): | 1190 def addOutputMismatch(self, test, ret, got, expected): |
1191 """Record a mismatch in test output for a particular test.""" | 1191 """Record a mismatch in test output for a particular test.""" |
1192 if self.shouldStop: | |
1193 # don't print, some other test case already failed and | |
1194 # printed, we're just stale and probably failed due to our | |
1195 # temp dir getting cleaned up. | |
1196 return | |
1192 | 1197 |
1193 accepted = False | 1198 accepted = False |
1194 failed = False | 1199 failed = False |
1195 lines = [] | 1200 lines = [] |
1196 | 1201 |