From: Ian Jackson Date: Sun, 14 Oct 2018 13:52:28 +0000 (+0100) Subject: Makefile: Set HOME when running tests X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8df9c5df4e01c34fac368840ab78fb592461e73b;p=git-buildpackage.git Makefile: Set HOME when running tests A nonexistent directory is sufficient. Otherwise the tests can pick up the user's git configuration, which is undesirable. For example, I have [branch] autoSetupMerge = false which causes this test >>> clone.create_branch('foo', 'origin/foo') >>> clone.get_merge_branch('foo') 'origin/foo' to fail. Signed-off-by: Ian Jackson --- diff --git a/Makefile b/Makefile index e791e9f..908d992 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ test: export GIT_COMMITTER_NAME=$$GIT_AUTHOR_NAME; \ export GIT_COMMITTER_EMAIL=$$GIT_AUTHOR_EMAIL; \ PYTHONPATH=. \ + HOME=$(PWD)/tests-home-does-not-exist \ LC_ALL=$(TEST_LOCALE) python3 setup.py nosetests $(NOSE_OPTS) syntax-check: