threads / patch / 1471

patchNeed to set PAGER in tests

Subject: [PATCH] Need to set PAGER in tests

## tl;dr

2 messages between Aug 11, 2005 and Aug 11, 2005. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Pavel Roskin· Aug 11, 2005, 02:10 UTC · lore
Hello!

"t5400-send-pack.sh --verbose" stops waiting for user input. It happens because "git log" uses less for output now. To prevent this, PAGER should be set to cat.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Show changes to t/test-lib.sh +2 −1
diff --git a/t/test-lib.sh b/t/test-lib.sh
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -5,8 +5,9 @@
 
 # For repeatability, reset the environment to known value.
 LANG=C
+PAGER=cat
 TZ=UTC
-export LANG TZ
+export LANG PAGER TZ
 unset AUTHOR_DATE
 unset AUTHOR_EMAIL
 unset AUTHOR_NAME
-- 
Regards,
Pavel Roskin
Junio C Hamano· Aug 11, 2005, 05:50 UTC · re: Pavel Roskin · lore

Re: [PATCH] Need to set PAGER in tests

Pavel Roskin <proski@gnu.org> writes:
> "t5400-send-pack.sh --verbose" stops waiting for user input.  It happens
> because "git log" uses less for output now.  To prevent this, PAGER
> should be set to cat.
Good catch, thanks.

I did not notice this before, because I always work in Emacs compilation buffer, setting PAGER to cat and EDITOR to emacsclient.

← back to recent threads