1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-11-22 23:40:58 +02:00

tests: setup.sh: doc / more verbose

This commit is contained in:
Daniel Hahler 2015-01-25 19:50:27 +01:00
parent 5cb689875e
commit 88e602e367

View File

@ -1,3 +1,7 @@
# Setup for tests.
#
# It returns 1 in case of errors, and no tests should be run then!
#
# Ensure we have our mocked out AUTOENV_ENV_FILENAME # Ensure we have our mocked out AUTOENV_ENV_FILENAME
# (via .zshenv). # (via .zshenv).
@ -5,7 +9,10 @@
# Not handled in varstash yet. # Not handled in varstash yet.
# setopt nounset # setopt nounset
[[ $AUTOENV_ENV_FILENAME[0,4] == '/tmp' ]] || return 1 if [[ $AUTOENV_ENV_FILENAME[0,4] != '/tmp' ]]; then
echo "AUTOENV_ENV_FILENAME is not in /tmp. Aborting."
return 1
fi
# Reset any authentication. # Reset any authentication.
echo -n >| $AUTOENV_ENV_FILENAME echo -n >| $AUTOENV_ENV_FILENAME