[libhttp-oai-perl] 01/02: debian/rules: explicitly set PWD for tests.

gregor herrmann gregoa at debian.org
Sat Jul 15 00:37:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libhttp-oai-perl.

commit 81435f0fa17a02b2b31e09b2c3adad1ec3bbd9b7
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat Jul 15 02:33:35 2017 +0200

    debian/rules: explicitly set PWD for tests.
    
    The environment variable is used in t/00static.t but apparently not set by
    at least one buildd.
---
 debian/rules | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/debian/rules b/debian/rules
index c36e401..d42918d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,13 @@ override_dh_auto_configure:
 	[ ! -d $(CURDIR)/bin -a -d $(CURDIR)/script ] || mv -v $(CURDIR)/bin $(CURDIR)/script
 	dh_auto_configure
 
+
+override_dh_auto_test:
+	# \$ENV{PWD} is not guaranteed to be set on buildds?!
+	# cf. https://buildd.debian.org/status/fetch.php?pkg=libhttp-oai-perl&arch=all&ver=4.04-1&stamp=1500072575&raw=0
+	# and is needed by t/00static.t
+	PWD=$(CURDIR) dh_auto_test
+
 override_dh_auto_install:
 	dh_auto_install
 	# remove example script

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libhttp-oai-perl.git



More information about the Pkg-perl-cvs-commits mailing list