[libdist-zilla-plugin-requiresexternal-perl] 03/06: Set HOME in debian/rules, otherwise t/externaldeps.t fails.

gregor herrmann gregoa at debian.org
Fri Sep 29 15:20:32 UTC 2017


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

gregoa pushed a commit to branch master
in repository libdist-zilla-plugin-requiresexternal-perl.

commit b723efd7c2d19dd92f6258ff9705dae0c0e56c28
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Sep 29 16:48:25 2017 +0200

    Set HOME in debian/rules, otherwise t/externaldeps.t fails.
---
 debian/rules | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 87fd826..5851ff7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,14 @@
 #!/usr/bin/make -f
 
+BUILDHOME = $(CURDIR)/debian/build
+
 %:
 	dh $@
 
+override_dh_clean:
+	dh_clean
+	rm -rf $(BUILDHOME)
+
 override_dh_auto_test:
-	dh_auto_test -- TEST_VERBOSE=0
+	mkdir -p $(BUILDHOME)
+	HOME=$(BUILDHOME) dh_auto_test -- TEST_VERBOSE=0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-plugin-requiresexternal-perl.git



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