[PATCH STABLE] tests: handle Message-Id line wrapping in test-notify-changegroup.t

Denis Laxalde denis at laxalde.org
Mon Nov 4 08:48:27 UTC 2019


# HG changeset patch
# User Denis Laxalde <denis at laxalde.org>
# Date 1572856510 -3600
#      Mon Nov 04 09:35:10 2019 +0100
# Branch stable
# Node ID 9a43cef9ec59f711f1f697430aafd569ca9e2b31
# Parent  579672b347d2169a4abfb372873972a0fd6a839c
tests: handle Message-Id line wrapping in test-notify-changegroup.t

This fixes this test on Python 3 with a long hostname. See changeset
4128ffba4431 for details.

diff --git a/tests/test-notify-changegroup.t b/tests/test-notify-changegroup.t
--- a/tests/test-notify-changegroup.t
+++ b/tests/test-notify-changegroup.t
@@ -39,6 +39,7 @@ commit
 push
 
   $ hg --traceback --cwd b push ../a 2>&1 |
+  >     "$PYTHON" $TESTDIR/unwrap-message-id.py | \
   >     "$PYTHON" -c 'from __future__ import print_function ; import sys,re; print(re.sub("\n\t", " ", sys.stdin.read()), end="")'
   pushing to ../a
   searching for changes
@@ -93,6 +94,7 @@ unbundle with unrelated source
 unbundle with correct source
 
   $ hg --config notify.sources=unbundle --cwd a unbundle ../test.hg 2>&1 |
+  >     "$PYTHON" $TESTDIR/unwrap-message-id.py | \
   >     "$PYTHON" -c 'from __future__ import print_function ; import sys,re; print(re.sub("\n\t", " ", sys.stdin.read()), end="")'
   adding changesets
   adding manifests
@@ -169,6 +171,7 @@ merge as a different user
 push
 
   $ hg --traceback --cwd b --config notify.fromauthor=True push ../a 2>&1 |
+  >     "$PYTHON" $TESTDIR/unwrap-message-id.py | \
   >     "$PYTHON" -c 'from __future__ import print_function ; import sys,re; print(re.sub("\n\t", " ", sys.stdin.read()), end="")'
   pushing to ../a
   searching for changes



More information about the Mercurial-devel mailing list