aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAntonio Terceiro <terceiro@debian.org>2022-04-23 09:37:41 -0300
committerGuido Günther <agx@sigxcpu.org>2022-04-23 15:47:33 +0200
commit0dfc259b11fc96ba63bfd644ebd7034b66b5d382 (patch)
treea88a636c1fd0a7e15f47c49d7954157800bf9e6e
parent5dcd753cb795663a88fbe96a33e88dc8865fe835 (diff)
tests: set HOME to an unexisting directory
The test suite contains several assumptions about the global git configuration, including but not limited to the default branch name being `master`. By running the tests against a unexisting HOME, git will not load the user configuration and instead use all the git defaults.
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 618f1a18..db5ad88e 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ all+net:
$(MAKE) GBP_NETWORK_TESTS=1 all
test:
+ export HOME=/nonexisting; \
export GIT_AUTHOR_NAME="Gbp Tests"; \
export GIT_AUTHOR_EMAIL=tests@example.com; \
export GIT_COMMITTER_NAME=$$GIT_AUTHOR_NAME; \