diff tests/test-patchbomb.t @ 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 0ce0cfee497f
children ac1bb8ca6d39
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