GNU bug report logs - #60771
[PATCH] tests: disable git log pager usage

Previous Next

Package: automake-patches;

Reported by: Mike Frysinger <vapier <at> gentoo.org>

Date: Fri, 13 Jan 2023 05:17:02 UTC

Severity: normal

Tags: patch

Done: Mike Frysinger <vapier <at> gentoo.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mike Frysinger <vapier <at> gentoo.org>
To: 60771 <at> debbugs.gnu.org
Subject: [bug#60771] [PATCH] tests: disable git log pager usage
Date: Fri, 13 Jan 2023 00:16:38 -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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/get-sysconf.sh b/t/get-sysconf.sh
index 11aa48bde3a3..016e60491938 100644
--- a/t/get-sysconf.sh
+++ b/t/get-sysconf.sh
@@ -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 '
-- 
2.39.0





This bug report was last modified 2 years and 130 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.