From d726236e27fbec0e9cc7a428ccc60d97d2af0fa9 Mon Sep 17 00:00:00 2001 From: Zebreus Date: Fri, 11 Oct 2024 23:52:59 +0200 Subject: testsuite: Fix tests on systems with a non-master defaultBranch When the git default branch is not set to master the installcheck test suite fails. This patch adjusts the test setup scripts to ignore the system and user git config files. GIT_CONFIG_SYSTEM is set to /dev/null to ignore /etc/gitconfig GIT_CONFIG_GLOBAL is not set because the global config files are loaded from $HOME or $XDG_CONFIG_HOME which we already reset. git documentation: https://git-scm.com/docs/git#Documentation/git.txt-codeGITCONFIGGLOBALcode Change-Id: Ie73bbed1db9419c9885b9d57e4edb7a4047d5cce --- tests/functional/common/vars-and-functions.sh.in | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/functional/common/vars-and-functions.sh.in b/tests/functional/common/vars-and-functions.sh.in index 451cf5383..98892f660 100644 --- a/tests/functional/common/vars-and-functions.sh.in +++ b/tests/functional/common/vars-and-functions.sh.in @@ -28,6 +28,7 @@ export NIX_REMOTE=${NIX_REMOTE_-} unset NIX_PATH export TEST_HOME=$TEST_ROOT/test-home export HOME=$TEST_HOME +export GIT_CONFIG_SYSTEM=/dev/null unset XDG_STATE_HOME unset XDG_DATA_HOME unset XDG_CONFIG_HOME -- cgit v1.2.3