[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {maint} tests: fix spurious failures due to dpkg install-info

From: Stefano Lattarini
Subject: [FYI] {maint} tests: fix spurious failures due to dpkg install-info
Date: Wed, 16 May 2012 15:50:41 +0200

* t/ Skip some checks if 'install-info' is the one
from dpkg, not the one from GNU info; the former might try to create
files in '/var/backups/', causing spurious failures like this for any
non-root user:

    install-info(.../install-info-dir.dir/_inst/info/ \
      creating new section `Dummy utilities'
    cp: cannot create regular file `/var/backups/infodir.bak': \
      Permission denied
    install-info(.../install-info-dir.dir/_inst/info/ \
      could not backup .../install-info-dir.dir/_inst/info/dir in \
      /var/backups/infodir.bak: No such file or directory

Signed-off-by: Stefano Lattarini <address@hidden>
 t/ |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/t/ b/t/
index d8b32d8..4beb937 100755
--- a/t/
+++ b/t/
@@ -67,7 +67,11 @@ $MAKE info
 test -f
 if install-info --version; then
-  have_installinfo=yes
+  if install-info --version | $EGREP -i '(dpkg|debian) install-info'; then
+    have_installinfo=no
+  else
+    have_installinfo=yes
+  fi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]