]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: disable git log pager usage
authorMike Frysinger <vapier@gentoo.org>
Fri, 13 Jan 2023 05:09:06 +0000 (00:09 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 14 Jan 2023 00:07:50 +0000 (19:07 -0500)
When running this code locally, the git log call can trigger a pager
depending on the local settings, which in turn forces the test to be
interactive.  Run git with --no-pager to force disable it.

* t/get-sysconf.sh: Run git with --no-pager.

t/get-sysconf.sh

index 11aa48bde3a3ea6d8412e57976671ad7847e0e57..016e6049193857938d0937867b81715f9d351eef 100644 (file)
@@ -25,7 +25,7 @@
 st=0
 if test -d "$am_top_srcdir"/.git; then
   # We are running from a git checkout.
-  (cd "$am_top_srcdir" && git log -1) || st=1
+  (cd "$am_top_srcdir" && git --no-pager log -1) || st=1
 elif test -f "$am_top_srcdir"/ChangeLog; then
   # We are probably running from a distribution tarball.
   awk '