Mercurial > hg
comparison tests/test-run-tests.t @ 31828:ff60498211f3
test-run-tests: pad the failure test to preserve the run order
Test size seems to dictate the order in which the tests are run, and the next
patch will add to test-success.t. Similar to c0cecc153d25.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 05 Apr 2017 22:59:44 -0400 |
parents | 220d4bffd23e |
children | 4eec2f04a672 |
comparison
equal
deleted
inserted
replaced
31827:220d4bffd23e | 31828:ff60498211f3 |
---|---|
105 > rataxes | 105 > rataxes |
106 > This is a noop statement so that | 106 > This is a noop statement so that |
107 > this test is still more bytes than success. | 107 > this test is still more bytes than success. |
108 > pad pad pad pad............................................................ | 108 > pad pad pad pad............................................................ |
109 > pad pad pad pad............................................................ | 109 > pad pad pad pad............................................................ |
110 > pad pad pad pad............................................................ | |
111 > pad pad pad pad............................................................ | |
112 > pad pad pad pad............................................................ | |
113 > pad pad pad pad............................................................ | |
110 > EOF | 114 > EOF |
111 | 115 |
112 >>> fh = open('test-failure-unicode.t', 'wb') | 116 >>> fh = open('test-failure-unicode.t', 'wb') |
113 >>> fh.write(u' $ echo babar\u03b1\n'.encode('utf-8')) and None | 117 >>> fh.write(u' $ echo babar\u03b1\n'.encode('utf-8')) and None |
114 >>> fh.write(u' l\u03b5\u03b5t\n'.encode('utf-8')) and None | 118 >>> fh.write(u' l\u03b5\u03b5t\n'.encode('utf-8')) and None |
317 $ rt --debug 2>&1 | grep -v pwd | 321 $ rt --debug 2>&1 | grep -v pwd |
318 + echo *SALT* 0 0 (glob) | 322 + echo *SALT* 0 0 (glob) |
319 *SALT* 0 0 (glob) | 323 *SALT* 0 0 (glob) |
320 + echo babar | 324 + echo babar |
321 babar | 325 babar |
322 + echo *SALT* 6 0 (glob) | 326 + echo *SALT* 10 0 (glob) |
323 *SALT* 6 0 (glob) | 327 *SALT* 10 0 (glob) |
324 *+ echo *SALT* 0 0 (glob) | 328 *+ echo *SALT* 0 0 (glob) |
325 *SALT* 0 0 (glob) | 329 *SALT* 0 0 (glob) |
326 + echo babar | 330 + echo babar |
327 babar | 331 babar |
328 + echo *SALT* 2 0 (glob) | 332 + echo *SALT* 2 0 (glob) |
413 rataxes | 417 rataxes |
414 This is a noop statement so that | 418 This is a noop statement so that |
415 this test is still more bytes than success. | 419 this test is still more bytes than success. |
416 pad pad pad pad............................................................ | 420 pad pad pad pad............................................................ |
417 pad pad pad pad............................................................ | 421 pad pad pad pad............................................................ |
422 pad pad pad pad............................................................ | |
423 pad pad pad pad............................................................ | |
424 pad pad pad pad............................................................ | |
425 pad pad pad pad............................................................ | |
418 | 426 |
419 Interactive with custom view | 427 Interactive with custom view |
420 | 428 |
421 $ echo 'n' | rt -i --view echo | 429 $ echo 'n' | rt -i --view echo |
422 $TESTTMP/test-failure.t $TESTTMP/test-failure.t.err (glob) | 430 $TESTTMP/test-failure.t $TESTTMP/test-failure.t.err (glob) |
450 $ echo " saved backup bundle to \$TESTTMP/*.hg (glob)" >> test-failure.t | 458 $ echo " saved backup bundle to \$TESTTMP/*.hg (glob)" >> test-failure.t |
451 $ echo 'y' | rt -i 2>&1 | 459 $ echo 'y' | rt -i 2>&1 |
452 | 460 |
453 --- $TESTTMP/test-failure.t | 461 --- $TESTTMP/test-failure.t |
454 +++ $TESTTMP/test-failure.t.err | 462 +++ $TESTTMP/test-failure.t.err |
455 @@ -1,11 +1,11 @@ | 463 @@ -1,5 +1,5 @@ |
456 $ echo babar | 464 $ echo babar |
457 - rataxes | 465 - rataxes |
458 + babar | 466 + babar |
459 This is a noop statement so that | 467 This is a noop statement so that |
460 this test is still more bytes than success. | 468 this test is still more bytes than success. |
469 pad pad pad pad............................................................ | |
470 @@ -9,7 +9,7 @@ | |
461 pad pad pad pad............................................................ | 471 pad pad pad pad............................................................ |
462 pad pad pad pad............................................................ | 472 pad pad pad pad............................................................ |
463 $ echo 'saved backup bundle to $TESTTMP/foo.hg' | 473 $ echo 'saved backup bundle to $TESTTMP/foo.hg' |
464 - saved backup bundle to $TESTTMP/foo.hg | 474 - saved backup bundle to $TESTTMP/foo.hg |
465 + saved backup bundle to $TESTTMP/foo.hg* (glob) | 475 + saved backup bundle to $TESTTMP/foo.hg* (glob) |
472 $ sed -e 's,(glob)$,&<,g' test-failure.t | 482 $ sed -e 's,(glob)$,&<,g' test-failure.t |
473 $ echo babar | 483 $ echo babar |
474 babar | 484 babar |
475 This is a noop statement so that | 485 This is a noop statement so that |
476 this test is still more bytes than success. | 486 this test is still more bytes than success. |
487 pad pad pad pad............................................................ | |
488 pad pad pad pad............................................................ | |
489 pad pad pad pad............................................................ | |
490 pad pad pad pad............................................................ | |
477 pad pad pad pad............................................................ | 491 pad pad pad pad............................................................ |
478 pad pad pad pad............................................................ | 492 pad pad pad pad............................................................ |
479 $ echo 'saved backup bundle to $TESTTMP/foo.hg' | 493 $ echo 'saved backup bundle to $TESTTMP/foo.hg' |
480 saved backup bundle to $TESTTMP/foo.hg (glob)< | 494 saved backup bundle to $TESTTMP/foo.hg (glob)< |
481 $ echo 'saved backup bundle to $TESTTMP/foo.hg' | 495 $ echo 'saved backup bundle to $TESTTMP/foo.hg' |