Patchwork D8964: test-run-tests.t: add a --retest test to demonstrate a fix in next patch

login
register
mail settings
Submitter phabricator
Date Aug. 27, 2020, 7:04 a.m.
Message ID <differential-rev-PHID-DREV-lf2nugpdmgpiek6arurx-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47064/
State Superseded
Headers show

Comments

phabricator - Aug. 27, 2020, 7:04 a.m.
khanchi97 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8964

AFFECTED FILES
  tests/test-run-tests.t

CHANGE DETAILS




To: khanchi97, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-run-tests.t b/tests/test-run-tests.t
--- a/tests/test-run-tests.t
+++ b/tests/test-run-tests.t
@@ -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: 1843801597
+  [1]
   $ rm test-cases.t#b#c.err
   $ rm test-cases.t