diff options
author | Zebreus <zebreus@zebre.us> | 2024-10-11 23:52:59 +0200 |
---|---|---|
committer | Zebreus <zebreus@zebre.us> | 2024-10-14 05:56:02 +0000 |
commit | d726236e27fbec0e9cc7a428ccc60d97d2af0fa9 (patch) | |
tree | 1ee37d1ce6d639670964e3094b99c48d2645a5a7 | |
parent | 326cbecb61d42ce73caa391cdcb21acb2581bf7c (diff) |
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
-rw-r--r-- | tests/functional/common/vars-and-functions.sh.in | 1 |
1 files changed, 1 insertions, 0 deletions
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 |