[Python-modules-commits] [cookiecutter] 04/09: Create a fake home to let some tests be happy.

Vincent Bernat bernat at moszumanska.debian.org
Sun Nov 15 23:12:44 UTC 2015


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

bernat pushed a commit to branch master
in repository cookiecutter.

commit 78b5a35fe688f9be8bc7e0dd997abeb4fab3bda5
Author: Vincent Bernat <vincent at bernat.im>
Date:   Sun Nov 15 23:22:09 2015 +0100

    Create a fake home to let some tests be happy.
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 0cdcb28..adec4c4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,6 +18,10 @@ override_dh_auto_clean:
 	dh_auto_clean
 	find . \( -name '*.py[co]' -or -name '\._*' -or -name '\.DS_Store' \) -delete
 
+override_dh_auto_test:
+	mkdir -p $(PWD)/.fake-home
+	HOME=$(PWD)/.fake-home dh_auto_test || (rm -rf $(PWD)/.fake-home ; exit 1)
+
 override_dh_install:
 	dh_install
 	# Move cookiecutter executable in its dedicated package

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/cookiecutter.git



More information about the Python-modules-commits mailing list