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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 60771 in the body.
You can then email your comments to 60771 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to automake-patches <at> gnu.org:
bug#60771; Package automake-patches. (Fri, 13 Jan 2023 05:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mike Frysinger <vapier <at> gentoo.org>:
New bug report received and forwarded. Copy sent to automake-patches <at> gnu.org. (Fri, 13 Jan 2023 05:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mike Frysinger <vapier <at> gentoo.org>
To: automake-patches <at> gnu.org
Subject: [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





Information forwarded to automake-patches <at> gnu.org:
bug#60771; Package automake-patches. (Fri, 13 Jan 2023 22:37:02 GMT) Full text and rfc822 format available.

Message #8 received at 60771 <at> debbugs.gnu.org (full text, mbox):

From: Karl Berry <karl <at> freefriends.org>
To: vapier <at> gentoo.org
Cc: 60771 <at> debbugs.gnu.org
Subject: Re: [bug#60771] [PATCH] tests: disable git log pager usage
Date: Fri, 13 Jan 2023 15:36:36 -0700
    -  (cd "$am_top_srcdir" && git log -1) || st=1
    +  (cd "$am_top_srcdir" && git --no-pager log -1) || st=1

Sure. Please commit. Thanks. -k




bug closed, send any further explanations to 60771 <at> debbugs.gnu.org and Mike Frysinger <vapier <at> gentoo.org> Request was from Mike Frysinger <vapier <at> gentoo.org> to control <at> debbugs.gnu.org. (Sat, 14 Jan 2023 01:36:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 11 Feb 2023 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 46 days ago.

Previous Next


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