1
0
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:
Daniel Hahler
2017-12-15 23:15:00 +01:00
committed by Daniel Hahler
parent 016426207c
commit b92462ff2d
8 changed files with 8 additions and 21 deletions

View File

@@ -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.