changeset 28051:413201fbbc82

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.
author Sébastien Brissaud <sebastien@brissaud.name>
date Sun, 07 Feb 2016 09:36:09 +0100
parents 7e9e39228de6
children b59ef0c21405
files tests/test-patchbomb.t
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-patchbomb.t	Wed Feb 10 22:44:29 2016 +0900
+++ b/tests/test-patchbomb.t	Sun Feb 07 09:36:09 2016 +0100
@@ -28,6 +28,9 @@
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "patchbomb=" >> $HGRCPATH
 
+Ensure hg email output is sent to stdout
+  $ unset PAGER
+
   $ hg init t
   $ cd t
   $ echo a > a