comparison tests/test-run-tests.t @ 28596:9949950664cd

run-tests: add support for automatically bisecting test failures
author Augie Fackler <augie@google.com>
date Sat, 19 Mar 2016 14:26:10 -0400
parents 8de70574be2c
children ca38d993b1b6
comparison
equal deleted inserted replaced
28595:adda6dee600e 28596:9949950664cd
756 > pass 756 > pass
757 > EOF 757 > EOF
758 $ rt nonlocal/test-is-not-here.t 758 $ rt nonlocal/test-is-not-here.t
759 . 759 .
760 # Ran 1 tests, 0 skipped, 0 warned, 0 failed. 760 # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
761
762 support for bisecting failed tests automatically
763 $ hg init bisect
764 $ cd bisect
765 $ cat >> test-bisect.t <<EOF
766 > $ echo pass
767 > pass
768 > EOF
769 $ hg add test-bisect.t
770 $ hg ci -m 'good'
771 $ cat >> test-bisect.t <<EOF
772 > $ echo pass
773 > fail
774 > EOF
775 $ hg ci -m 'bad'
776 $ rt --known-good-rev=0 test-bisect.t
777
778 --- $TESTTMP/anothertests/bisect/test-bisect.t
779 +++ $TESTTMP/anothertests/bisect/test-bisect.t.err
780 @@ -1,4 +1,4 @@
781 $ echo pass
782 pass
783 $ echo pass
784 - fail
785 + pass
786
787 ERROR: test-bisect.t output changed
788 !
789 Failed test-bisect.t: output changed
790 test-bisect.t broken by 72cbf122d116 (bad)
791 # Ran 1 tests, 0 skipped, 0 warned, 1 failed.
792 python hash seed: * (glob)
793 [1]