test: unset ASDF_DATA_DIR and ASDF_CONFIG_FILE during test (#1722)

Co-authored-by: Trevor Brown <Stratus3D@users.noreply.github.com>
This commit is contained in:
莊喬 2024-12-17 12:58:05 -08:00 committed by GitHub
parent 221507f1c0
commit fa3d216540
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,11 @@ setup_suite() {
# tests fail when it is set to something other than the temp dir.
unset ASDF_DIR
# Also unset below variables, because in users shell shimmed commands
# (include bats) export them by determining user's real HOME.
unset ASDF_DATA_DIR
unset ASDF_CONFIG_FILE
# Set an agnostic Git configuration directory to prevent personal
# configuration from interfering with the tests
export GIT_CONFIG_GLOBAL=/dev/null