# Add enter and leave env files to authentication file.
test_autoenv_auth_env_files() {
- test_autoenv_add_to_env $PWD/$AUTOENV_FILE_ENTER
- test_autoenv_add_to_env $PWD/$AUTOENV_FILE_LEAVE
+ local dir=${1:-$PWD}
+ test_autoenv_add_to_env $dir/$AUTOENV_FILE_ENTER
+ test_autoenv_add_to_env $dir/$AUTOENV_FILE_LEAVE
}
# Now keep on going on errors again.