[cpanminus] 01/02: Set HOME to a writable directory for tests.
gregor herrmann
gregoa at debian.org
Mon Jun 2 21:13:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository cpanminus.
commit 0a9f2715bd4d25907ddce10ada63ec50d2566b95
Author: gregor herrmann <gregoa at debian.org>
Date: Mon Jun 2 23:10:12 2014 +0200
Set HOME to a writable directory for tests.
Thanks: David Suárez for the bug report.
Closes: #750341
---
debian/rules | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 48a8974..3b8c409 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,14 @@
#!/usr/bin/make -f
+BUILDHOME = $(CURDIR)/debian/build
+
%:
dh $@
+override_dh_clean:
+ dh_clean
+ rm -rf $(BUILDHOME)
+
override_dh_auto_build:
dh_auto_build
for FAT in \
@@ -42,5 +48,6 @@ override_dh_auto_build:
done
override_dh_auto_test:
- dh_auto_test
+ mkdir -p $(BUILDHOME)
+ HOME=$(BUILDHOME) dh_auto_test
PERL5LIB=$(CURDIR)/blib/lib perl $(CURDIR)/blib/script/cpanm --version
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/cpanminus.git
More information about the Pkg-perl-cvs-commits
mailing list