mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
test: better isolate Git in test suite (#1454)
This commit is contained in:
parent
ffa018763c
commit
df154edc25
9
test/setup_suite.bash
Normal file
9
test/setup_suite.bash
Normal file
@ -0,0 +1,9 @@
|
||||
setup_suite() {
|
||||
# Unset ASDF_DIR because it may already be set by the users shell, and some
|
||||
# tests fail when it is set to something other than the temp dir.
|
||||
unset ASDF_DIR
|
||||
|
||||
# Set an agnostic Git configuration directory to prevent personal
|
||||
# configuration from interfering with the tests
|
||||
export GIT_CONFIG_GLOBAL=/dev/null
|
||||
}
|
@ -1,9 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Unset ASDF_DIR because it may already be set by the users shell, and some
|
||||
# tests fail when it is set to something other than the temp dir.
|
||||
unset ASDF_DIR
|
||||
|
||||
# shellcheck source=lib/utils.bash
|
||||
. "$(dirname "$BATS_TEST_DIRNAME")"/lib/utils.bash
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user