test-patchbomb: ensure hg email write to stdout
authorSébastien Brissaud <sebastien@brissaud.name>
Sun, 07 Feb 2016 09:36:09 +0100
changeset 28051 413201fbbc82
parent 28050 7e9e39228de6
child 28052 b59ef0c21405
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.
tests/test-patchbomb.t
--- 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