+# 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
# (via .zshenv).
# Not handled in varstash yet.
# 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.
echo -n >| $AUTOENV_ENV_FILENAME