[PATCH 2 of 2] test-patchbomb: disable a failing test on Windows

Matt Harbison mharbison72 at gmail.com
Sun Apr 9 21:52:31 EDT 2017


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1491787400 14400
#      Sun Apr 09 21:23:20 2017 -0400
# Node ID 548c1c174b937b1512ea689661c591dcf778ebe1
# Parent  1de38b5ca1886aa41844dc7a80c1b92b65a8171e
test-patchbomb: disable a failing test on Windows

It's unknown where or why the patch content is being lost.  Echoing into the
same script from inside cmd.exe (not MSYS) will print out the echoed strings.

diff --git a/tests/test-patchbomb.t b/tests/test-patchbomb.t
--- a/tests/test-patchbomb.t
+++ b/tests/test-patchbomb.t
@@ -2960,6 +2960,23 @@
 
 single rev
 
+For reasons unknown, pretendmail isn't transferring stdin to stdout on Windows,
+so the mail content is lost.
+
+#if windows
+
+  $ hg email --date '1980-1-1 0:1' -v -t foo -s test -r '10'
+  From [test]: test
+  this patch series consists of 1 patches.
+  
+  warning: invalid patchbomb.intro value "mpmwearaclownnose"
+  (should be one of always, never, auto)
+  
+  sending [PATCH] test ...
+  sending mail: $TESTTMP/t2/pretendmail.py -f test foo
+
+#else
+
   $ hg email --date '1980-1-1 0:1' -v -t foo -s test -r '10'
   From [test]: test
   this patch series consists of 1 patches.
@@ -3000,6 +3017,8 @@
   sending [PATCH] test ...
   sending mail: $TESTTMP/t2/pretendmail.py -f test foo
 
+#endif
+
 Test pull url header
 =================================
 


More information about the Mercurial-devel mailing list