test: redirect stderr so warning messages don't change output (issue6237)
authorJulien Cristau <jcristau@debian.org>
Thu, 25 Jun 2020 11:22:34 +0200
changeset 45016 752da6863e39
parent 45015 5797dbb630df
child 45017 a65c60f3280e
test: redirect stderr so warning messages don't change output (issue6237) 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. Differential Revision: https://phab.mercurial-scm.org/D8664
tests/test-clone-uncompressed.t
--- a/tests/test-clone-uncompressed.t	Thu Jun 25 12:02:34 2020 -0700
+++ b/tests/test-clone-uncompressed.t	Thu Jun 25 11:22:34 2020 +0200
@@ -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