--- a/tests/test-run-tests.t Mon Dec 16 19:46:07 2024 -0500
+++ b/tests/test-run-tests.t Mon Dec 30 21:48:33 2024 +0100
@@ -1556,94 +1556,6 @@
python hash seed: * (glob)
[1]
-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
- running 1 tests using 1 parallel processes
-
- --- $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, 1 failed.
- python hash seed: * (glob)
- [1]
-
- $ cd ..
-
-support bisecting a separate repo
-
- $ hg init bisect-dependent
- $ cd bisect-dependent
- $ cat > test-bisect-dependent.t <<EOF
- > $ tail -1 \$TESTDIR/../bisect/test-bisect.t
- > pass
- > EOF
- $ hg commit -Am dependent test-bisect-dependent.t
-
- $ rt --known-good-rev=0 test-bisect-dependent.t
- running 1 tests using 1 parallel processes
-
- --- $TESTTMP/anothertests/bisect-dependent/test-bisect-dependent.t
- +++ $TESTTMP/anothertests/bisect-dependent/test-bisect-dependent.t.err
- @@ -1,2 +1,2 @@
- $ tail -1 $TESTDIR/../bisect/test-bisect.t
- - pass
- + fail
-
- ERROR: test-bisect-dependent.t output changed
- !
- Failed test-bisect-dependent.t: output changed
- Failed to identify failure point for test-bisect-dependent.t
- # Ran 1 tests, 0 skipped, 1 failed.
- python hash seed: * (glob)
- [1]
-
- $ rt --bisect-repo=../test-bisect test-bisect-dependent.t
- usage: run-tests.py [options] [tests]
- run-tests.py: error: --bisect-repo cannot be used without --known-good-rev
- [2]
-
- $ rt --known-good-rev=0 --bisect-repo=../bisect test-bisect-dependent.t
- running 1 tests using 1 parallel processes
-
- --- $TESTTMP/anothertests/bisect-dependent/test-bisect-dependent.t
- +++ $TESTTMP/anothertests/bisect-dependent/test-bisect-dependent.t.err
- @@ -1,2 +1,2 @@
- $ tail -1 $TESTDIR/../bisect/test-bisect.t
- - pass
- + fail
-
- ERROR: test-bisect-dependent.t output changed
- !
- Failed test-bisect-dependent.t: output changed
- test-bisect-dependent.t broken by 72cbf122d116 (bad)
- # Ran 1 tests, 0 skipped, 1 failed.
- python hash seed: * (glob)
- [1]
-
- $ cd ..
Test a broken #if statement doesn't break run-tests threading.
==============================================================