[libhtml-formatexternal-perl] 04/05: Create a temporary home directory for the test suite

Niko Tyni ntyni at moszumanska.debian.org
Tue Oct 13 18:34:36 UTC 2015


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

ntyni pushed a commit to branch master
in repository libhtml-formatexternal-perl.

commit 61ab9a87d35f87018d08c97acbec86a1e33e06d0
Author: Niko Tyni <ntyni at debian.org>
Date:   Tue Oct 13 21:24:04 2015 +0300

    Create a temporary home directory for the test suite
    
    The elinks and links2 plugins try to access $HOME.
---
 debian/rules | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/debian/rules b/debian/rules
index f8bd4c7..2e68c37 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,17 @@
 #!/usr/bin/make -f
 
+BUILDHOME = $(CURDIR)/debian/build
+
 # for HTML::FormatText::Netrik
 export TERM=dumb
 
+override_dh_clean:
+	dh_clean
+	rm -rf $(BUILDHOME)
+
+override_dh_auto_test:
+	mkdir -p $(BUILDHOME)
+	HOME=$(BUILDHOME) dh_auto_test
+
 %:
 	dh $@

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



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