Patchwork [2,of,4,V2] test-run-tests: pad the failure test to preserve the run order

login
register
mail settings
Submitter Matt Harbison
Date April 7, 2017, 1:11 a.m.
Message ID <7c5e861f39fbffdfae0e.1491527501@Envy>
Download mbox | patch
Permalink /patch/19979/
State Accepted
Headers show

Comments

Matt Harbison - April 7, 2017, 1:11 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1491447584 14400
#      Wed Apr 05 22:59:44 2017 -0400
# Node ID 7c5e861f39fbffdfae0e31d1edba419a62391afe
# Parent  c0789426514615cd841a31f60688516f2cdeaae0
test-run-tests: pad the failure test to preserve the run order

Test size seems to dictate the order in which the tests are run, and the next
patch will add to test-success.t.  Similar to c0cecc153d25.

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
@@ -107,6 +107,10 @@ 
   > this test is still more bytes than success.
   > pad pad pad pad............................................................
   > pad pad pad pad............................................................
+  > pad pad pad pad............................................................
+  > pad pad pad pad............................................................
+  > pad pad pad pad............................................................
+  > pad pad pad pad............................................................
   > EOF
 
   >>> fh = open('test-failure-unicode.t', 'wb')
@@ -319,8 +323,8 @@ 
   *SALT* 0 0 (glob)
   + echo babar
   babar
-  + echo *SALT* 6 0 (glob)
-  *SALT* 6 0 (glob)
+  + echo *SALT* 10 0 (glob)
+  *SALT* 10 0 (glob)
   *+ echo *SALT* 0 0 (glob)
   *SALT* 0 0 (glob)
   + echo babar
@@ -415,6 +419,10 @@ 
   this test is still more bytes than success.
   pad pad pad pad............................................................
   pad pad pad pad............................................................
+  pad pad pad pad............................................................
+  pad pad pad pad............................................................
+  pad pad pad pad............................................................
+  pad pad pad pad............................................................
 
 Interactive with custom view
 
@@ -452,13 +460,15 @@ 
   
   --- $TESTTMP/test-failure.t
   +++ $TESTTMP/test-failure.t.err
-  @@ -1,11 +1,11 @@
+  @@ -1,5 +1,5 @@
      $ echo babar
   -  rataxes
   +  babar
    This is a noop statement so that
    this test is still more bytes than success.
    pad pad pad pad............................................................
+  @@ -9,7 +9,7 @@
+   pad pad pad pad............................................................
    pad pad pad pad............................................................
      $ echo 'saved backup bundle to $TESTTMP/foo.hg'
   -  saved backup bundle to $TESTTMP/foo.hg
@@ -476,6 +486,10 @@ 
   this test is still more bytes than success.
   pad pad pad pad............................................................
   pad pad pad pad............................................................
+  pad pad pad pad............................................................
+  pad pad pad pad............................................................
+  pad pad pad pad............................................................
+  pad pad pad pad............................................................
     $ echo 'saved backup bundle to $TESTTMP/foo.hg'
     saved backup bundle to $TESTTMP/foo.hg (glob)<
     $ echo 'saved backup bundle to $TESTTMP/foo.hg'