comparison tests/test-run-tests.t @ 36491:51a9f0246931

run-tests: resume raising an exception when a server fails to start Prior to 93228b2a1fc0, this exception was raised before the diff could be printed. By raising the exception after printing the diff, the location of the failure can be identified, but it is also easier to locate test runs where this occurs. The test bot maintains a list of failed tests, separate from the wall of diff output.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 26 Feb 2018 23:34:29 -0500
parents 93228b2a1fc0
children a247a0e82e7d
comparison
equal deleted inserted replaced
36490:432b85a46717 36491:51a9f0246931
539 539
540 $ cat > test-serve-fail.t <<EOF 540 $ cat > test-serve-fail.t <<EOF
541 > $ echo 'abort: child process failed to start blah' 541 > $ echo 'abort: child process failed to start blah'
542 > EOF 542 > EOF
543 $ rt test-serve-fail.t 543 $ rt test-serve-fail.t
544 server failed to start (HGPORT=*) (glob) 544
545 --- $TESTTMP/test-serve-fail.t 545 --- $TESTTMP/test-serve-fail.t
546 +++ $TESTTMP/test-serve-fail.t.err 546 +++ $TESTTMP/test-serve-fail.t.err
547 @@ -1* +1,2 @@ (glob) 547 @@ -1* +1,2 @@ (glob)
548 $ echo 'abort: child process failed to start blah' 548 $ echo 'abort: child process failed to start blah'
549 + abort: child process failed to start blah 549 + abort: child process failed to start blah
550 550
551 ERROR: test-serve-fail.t output changed 551 ERROR: test-serve-fail.t output changed
552 ! 552 !
553 Failed test-serve-fail.t: output changed 553 Failed test-serve-fail.t: server failed to start (HGPORT=*) (glob)
554 # Ran 1 tests, 0 skipped, 1 failed. 554 # Ran 1 tests, 0 skipped, 1 failed.
555 python hash seed: * (glob) 555 python hash seed: * (glob)
556 [1] 556 [1]
557 $ rm test-serve-fail.t 557 $ rm test-serve-fail.t
558 558