test-diff-color: disable pager for expected output on Windows (issue5555) stable
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 02 May 2017 22:26:09 -0400
branchstable
changeset 32122 1add41fc3c62
parent 32109 fbb5f4bf9492
child 32137 c4eb23116a09
test-diff-color: disable pager for expected output on Windows (issue5555) Windows uses `more.com`, which unhelpfully adds an extra trailing line consisting only of '\r'. It also converts tab characters to spaces, which throws off the last two tests. Setting the 'ui.formatted' option is what allowed the pager to be used by these tests in the first place.
tests/test-diff-color.t
--- a/tests/test-diff-color.t	Tue May 02 17:09:00 2017 -0500
+++ b/tests/test-diff-color.t	Tue May 02 22:26:09 2017 -0400
@@ -4,6 +4,7 @@
   > [ui]
   > color = yes
   > formatted = always
+  > paginate = never
   > [color]
   > mode = ansi
   > EOF