Mercurial > public > mercurial-scm > hg
diff 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 |
line wrap: on
line diff
--- a/tests/test-run-tests.t Sat Mar 19 20:49:02 2016 -0400 +++ b/tests/test-run-tests.t Sat Mar 19 14:26:10 2016 -0400 @@ -758,3 +758,36 @@ $ rt nonlocal/test-is-not-here.t . # Ran 1 tests, 0 skipped, 0 warned, 0 failed. + +support for bisecting failed tests automatically + $ hg init bisect + $ cd bisect + $ cat >> test-bisect.t <<EOF + > $ echo pass + > pass + > EOF + $ hg add test-bisect.t + $ hg ci -m 'good' + $ cat >> test-bisect.t <<EOF + > $ echo pass + > fail + > EOF + $ hg ci -m 'bad' + $ rt --known-good-rev=0 test-bisect.t + + --- $TESTTMP/anothertests/bisect/test-bisect.t + +++ $TESTTMP/anothertests/bisect/test-bisect.t.err + @@ -1,4 +1,4 @@ + $ echo pass + pass + $ echo pass + - fail + + pass + + ERROR: test-bisect.t output changed + ! + Failed test-bisect.t: output changed + test-bisect.t broken by 72cbf122d116 (bad) + # Ran 1 tests, 0 skipped, 0 warned, 1 failed. + python hash seed: * (glob) + [1]