Patchwork D8664: test: redirect stderr so warning messages don't cause changed output (issue6237)

login
register
mail settings
Submitter phabricator
Date June 25, 2020, 9:23 a.m.
Message ID <differential-rev-PHID-DREV-a53ovqprocqqno4stvuq-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46568/
State Superseded
Headers show

Comments

phabricator - June 25, 2020, 9:23 a.m.
jcristau created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  clone and commit race for the lock, and if commit has to wait more than
  a second it prints a warning to stderr.  Since this is somewhat expected
  here, silence it.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/test-clone-uncompressed.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-clone-uncompressed.t b/tests/test-clone-uncompressed.t
--- a/tests/test-clone-uncompressed.t
+++ b/tests/test-clone-uncompressed.t
@@ -407,7 +407,7 @@ 
   $ sleep 1
   $ echo >> repo/f1
   $ echo >> repo/f2
-  $ hg -R repo ci -m "1"
+  $ hg -R repo ci -m "1" 2>/dev/null
   $ wait
   $ hg -R clone id
   000000000000