tests: add a --retest test to demonstrate a fix in next patch
As you see above the added lines, there was only one test failed.
So the output should be:
"running 1 tests using 1 parallel processes"
Next patch will be fixing this.
Differential Revision: https://phab.mercurial-scm.org/D8964
--- a/tests/test-run-tests.t Thu Aug 27 12:21:24 2020 +0530
+++ b/tests/test-run-tests.t Thu Aug 27 12:24:57 2020 +0530
@@ -974,6 +974,25 @@
python hash seed: * (glob)
[1]
+ $ rt --retest
+ running 5 tests using 1 parallel processes
+
+ --- $TESTTMP/test-cases.t
+ +++ $TESTTMP/test-cases.t#b#c.err
+ @@ -6,5 +6,5 @@
+ #endif
+ #if b c
+ $ echo yes
+ - no
+ + yes
+ #endif
+
+ ERROR: test-cases.t#b#c output changed
+ !
+ Failed test-cases.t#b#c: output changed
+ # Ran 5 tests, 4 skipped, 1 failed.
+ python hash seed: * (glob)
+ [1]
$ rm test-cases.t#b#c.err
$ rm test-cases.t