Show More
@@ -1189,6 +1189,11 b' class TestResult(unittest._TextTestResul' | |||||
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 |
@@ -215,8 +215,29 b' Parallel runs' | |||||
215 | python hash seed: * (glob) |
|
215 | python hash seed: * (glob) | |
216 | [1] |
|
216 | [1] | |
217 |
|
217 | |||
|
218 | failures in parallel with --first should only print one failure | |||
|
219 | >>> f = open('test-nothing.t', 'w') | |||
|
220 | >>> f.write('foo\n' * 1024) | |||
|
221 | >>> f.write(' $ sleep 1') | |||
|
222 | $ $TESTDIR/run-tests.py --with-hg=`which hg` --jobs 2 --first | |||
|
223 | ||||
|
224 | --- $TESTTMP/test-failure*.t (glob) | |||
|
225 | +++ $TESTTMP/test-failure*.t.err (glob) | |||
|
226 | @@ -1,4 +1,4 @@ | |||
|
227 | $ echo babar | |||
|
228 | - rataxes | |||
|
229 | + babar | |||
|
230 | This is a noop statement so that | |||
|
231 | this test is still more bytes than success. | |||
|
232 | ||||
|
233 | Failed test-failure*.t: output changed (glob) | |||
|
234 | # Ran 2 tests, 0 skipped, 0 warned, 1 failed. | |||
|
235 | python hash seed: * (glob) | |||
|
236 | [1] | |||
|
237 | ||||
|
238 | ||||
218 | (delete the duplicated test file) |
|
239 | (delete the duplicated test file) | |
219 | $ rm test-failure-copy.t |
|
240 | $ rm test-failure-copy.t test-nothing.t | |
220 |
|
241 | |||
221 |
|
242 | |||
222 | Interactive run |
|
243 | Interactive run |
General Comments 0
You need to be logged in to leave comments.
Login now