Run config tests in BATS_TMPDIR for clean environment

This avoids issues with it picking up config files from parent
directories.
This commit is contained in:
Jonathan Mast 2019-12-21 14:22:32 -05:00
parent 59a9c03267
commit 67e0e50445
No known key found for this signature in database
GPG Key ID: 61BD854CBFF15EE6

View File

@ -3,6 +3,7 @@
load test_helpers
setup() {
cd $BATS_TMPDIR
ASDF_CONFIG_FILE=$BATS_TMPDIR/asdfrc
cat > $ASDF_CONFIG_FILE <<-EOM
key1 = value1