mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2025-12-14 10:15:12 +02:00
tests: simplify ZDOTDIR setup, remove base
This makes it easier to run tests without providing ZDOTDIR.
This commit is contained in:
committed by
Daniel Hahler
parent
016426207c
commit
b92462ff2d
@@ -15,7 +15,10 @@ export AUTOENV_AUTH_FILE="$CRAMTMP/autoenv/.autoenv_auth"
|
||||
_save_errexit=${options[errexit]}
|
||||
set -e
|
||||
|
||||
# Defined in .zshenv, e.g. tests/ZDOTDIR/.zshenv.
|
||||
# Can be defined in .zshenv, e.g. tests/ZDOTDIR.loadviafunction/.zshenv.
|
||||
if [[ -z $TEST_SOURCE_AUTOENV ]]; then
|
||||
TEST_SOURCE_AUTOENV=(source $TESTDIR/../autoenv.plugin.zsh)
|
||||
fi
|
||||
$TEST_SOURCE_AUTOENV
|
||||
|
||||
# Reset any authentication.
|
||||
|
||||
Reference in New Issue
Block a user