Show More
@@ -627,6 +627,8 class Test(unittest.TestCase): | |||||
627 | (r':%s\b' % self._startport, ':$HGPORT'), |
|
627 | (r':%s\b' % self._startport, ':$HGPORT'), | |
628 | (r':%s\b' % (self._startport + 1), ':$HGPORT1'), |
|
628 | (r':%s\b' % (self._startport + 1), ':$HGPORT1'), | |
629 | (r':%s\b' % (self._startport + 2), ':$HGPORT2'), |
|
629 | (r':%s\b' % (self._startport + 2), ':$HGPORT2'), | |
|
630 | (r'(?m)^(saved backup bundle to .*\.hg)( \(glob\))?$', | |||
|
631 | r'\1 (glob)'), | |||
630 | ] |
|
632 | ] | |
631 |
|
633 | |||
632 | if os.name == 'nt': |
|
634 | if os.name == 'nt': | |
@@ -1025,6 +1027,9 class TTest(Test): | |||||
1025 | if el.endswith(" (re)\n"): |
|
1027 | if el.endswith(" (re)\n"): | |
1026 | return TTest.rematch(el[:-6], l) |
|
1028 | return TTest.rematch(el[:-6], l) | |
1027 | if el.endswith(" (glob)\n"): |
|
1029 | if el.endswith(" (glob)\n"): | |
|
1030 | # ignore '(glob)' added to l by 'replacements' | |||
|
1031 | if l.endswith(" (glob)\n"): | |||
|
1032 | l = l[:-8] + "\n" | |||
1028 | return TTest.globmatch(el[:-8], l) |
|
1033 | return TTest.globmatch(el[:-8], l) | |
1029 | if os.altsep and l.replace('\\', '/') == el: |
|
1034 | if os.altsep and l.replace('\\', '/') == el: | |
1030 | return '+glob' |
|
1035 | return '+glob' |
@@ -297,24 +297,43 View the fix | |||||
297 |
|
297 | |||
298 | Accept the fix |
|
298 | Accept the fix | |
299 |
|
299 | |||
300 | $ echo 'y' | $TESTDIR/run-tests.py --with-hg=`which hg` -i |
|
300 | $ echo " $ echo 'saved backup bundle to \$TESTTMP/foo.hg'" >> test-failure.t | |
|
301 | $ echo " saved backup bundle to \$TESTTMP/foo.hg" >> test-failure.t | |||
|
302 | $ echo " $ echo 'saved backup bundle to \$TESTTMP/foo.hg'" >> test-failure.t | |||
|
303 | $ echo " saved backup bundle to \$TESTTMP/foo.hg (glob)" >> test-failure.t | |||
|
304 | $ echo " $ echo 'saved backup bundle to \$TESTTMP/foo.hg'" >> test-failure.t | |||
|
305 | $ echo " saved backup bundle to \$TESTTMP/*.hg (glob)" >> test-failure.t | |||
|
306 | $ echo 'y' | $TESTDIR/run-tests.py --with-hg=`which hg` -i 2>&1 | \ | |||
|
307 | > sed -e 's,(glob)$,&<,g' | |||
301 |
|
308 | |||
302 | --- $TESTTMP/test-failure.t |
|
309 | --- $TESTTMP/test-failure.t | |
303 | +++ $TESTTMP/test-failure.t.err |
|
310 | +++ $TESTTMP/test-failure.t.err | |
304 |
@@ -1, |
|
311 | @@ -1,9 +1,9 @@ | |
305 | $ echo babar |
|
312 | $ echo babar | |
306 | - rataxes |
|
313 | - rataxes | |
307 | + babar |
|
314 | + babar | |
308 | This is a noop statement so that |
|
315 | This is a noop statement so that | |
309 | this test is still more bytes than success. |
|
316 | this test is still more bytes than success. | |
|
317 | $ echo 'saved backup bundle to $TESTTMP/foo.hg' | |||
|
318 | - saved backup bundle to $TESTTMP/foo.hg | |||
|
319 | + saved backup bundle to $TESTTMP/foo.hg (glob)< | |||
|
320 | $ echo 'saved backup bundle to $TESTTMP/foo.hg' | |||
|
321 | saved backup bundle to $TESTTMP/foo.hg (glob)< | |||
|
322 | $ echo 'saved backup bundle to $TESTTMP/foo.hg' | |||
310 | Accept this change? [n] .. |
|
323 | Accept this change? [n] .. | |
311 | # Ran 2 tests, 0 skipped, 0 warned, 0 failed. |
|
324 | # Ran 2 tests, 0 skipped, 0 warned, 0 failed. | |
312 |
|
325 | |||
313 | $ cat test-failure.t |
|
326 | $ sed -e 's,(glob)$,&<,g' test-failure.t | |
314 | $ echo babar |
|
327 | $ echo babar | |
315 | babar |
|
328 | babar | |
316 | This is a noop statement so that |
|
329 | This is a noop statement so that | |
317 | this test is still more bytes than success. |
|
330 | this test is still more bytes than success. | |
|
331 | $ echo 'saved backup bundle to $TESTTMP/foo.hg' | |||
|
332 | saved backup bundle to $TESTTMP/foo.hg (glob)< | |||
|
333 | $ echo 'saved backup bundle to $TESTTMP/foo.hg' | |||
|
334 | saved backup bundle to $TESTTMP/foo.hg (glob)< | |||
|
335 | $ echo 'saved backup bundle to $TESTTMP/foo.hg' | |||
|
336 | saved backup bundle to $TESTTMP/*.hg (glob)< | |||
318 |
|
337 | |||
319 | (reinstall) |
|
338 | (reinstall) | |
320 | $ mv backup test-failure.t |
|
339 | $ mv backup test-failure.t |
General Comments 0
You need to be logged in to leave comments.
Login now