Skip to contentSkip to conversation

Need to set PAGER in tests

PATCH In review Pavel Roskin 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Need to set PAGER in tests

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.

t/test-lib.sh +2 -1
@@ -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
Signature · 2 lines
Regards,
Pavel Roskin
#1 lore raw
Quoted 3 lines · Pavel Roskin

"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.