Patchwork D1186: tests: de-flake test-run-tests.t's "--jobs=2 --first" test

login
register
mail settings
Submitter phabricator
Date Oct. 19, 2017, 3:11 p.m.
Message ID <22790fea5d1dca9c0fea4ee3c02cdc5c@localhost.localdomain>
Download mbox | patch
Permalink /patch/25244/
State Not Applicable
Headers show

Comments

phabricator - Oct. 19, 2017, 3:11 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe2efb1377340: tests: de-flake test-run-tests.t&#039;s &quot;--jobs=2 --first&quot; test (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1186?vs=3016&id=3032

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

AFFECTED FILES
  tests/test-run-tests.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers, quark, durin42
Cc: 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
@@ -609,10 +609,7 @@ 
   [1]
 
 failures in parallel with --first should only print one failure
-  >>> f = open('test-nothing.t', 'w')
-  >>> f.write('foo\n' * 1024) and None
-  >>> f.write('  $ sleep 1') and None
-  $ rt --jobs 2 --first
+  $ rt --jobs 2 --first test-failure*.t
   
   --- $TESTTMP/test-failure*.t (glob)
   +++ $TESTTMP/test-failure*.t.err (glob)
@@ -625,14 +622,14 @@ 
    pad pad pad pad............................................................
   
   Failed test-failure*.t: output changed (glob)
-  Failed test-nothing.t: output changed
+  Failed test-failure*.t: output changed (glob)
   # Ran 2 tests, 0 skipped, 2 failed.
   python hash seed: * (glob)
   [1]
 
 
 (delete the duplicated test file)
-  $ rm test-failure-copy.t test-nothing.t
+  $ rm test-failure-copy.t
 
 
 Interactive run