From patchwork Sun Feb 7 08:40:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: test-patchbomb: ensure hg email write to stdout From: =?utf-8?q?S=C3=A9bastien_Brissaud?= X-Patchwork-Id: 13072 Message-Id: <0ae5dbe79b178337e145.1454834440@descartes.seb.brissaud.name> To: mercurial-devel@mercurial-scm.org Date: Sun, 07 Feb 2016 09:40:40 +0100 # HG changeset patch # User Sébastien Brissaud # Date 1454834169 -3600 # Sun Feb 07 09:36:09 2016 +0100 # Node ID 0ae5dbe79b178337e1459377a1ebbf7ce7bb0485 # Parent a036e1ae1fbe88ab99cb861ebfc2e4da7a3912ca test-patchbomb: ensure hg email write to stdout With -n/--test and if the PAGER environment variable is set, 'hg email' send its output to the user defined pager. If the pager capture the output, the test is unable verify it. Unsetting the PAGER environment variable force 'hg email' to write to stdout. diff --git a/tests/test-patchbomb.t b/tests/test-patchbomb.t --- a/tests/test-patchbomb.t +++ b/tests/test-patchbomb.t @@ -25,12 +25,15 @@ Mercurial-patchbomb/.* -> Mercurial-patc $ FILTERBOUNDARY="python `pwd`/prune-blank-after-boundary.py" $ echo "[format]" >> $HGRCPATH $ echo "usegeneraldelta=yes" >> $HGRCPATH $ echo "[extensions]" >> $HGRCPATH $ echo "patchbomb=" >> $HGRCPATH +Ensure hg email output is sent to stdout + $ unset PAGER + $ hg init t $ cd t $ echo a > a $ hg commit -Ama -d '1 0' adding a