X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=tests%2Fsetup.zsh;h=316074de972983fae62b2a4bd3c8d0cc55884f7e;hb=961190678e0183c7d26926d77a76149b0b06922a;hp=bead06856e98d10b4c2a46aedc42043ecab3a67f;hpb=58268b8da3818476d6698ec044a64b25bad5a24e;p=zsh-autoenv.git diff --git a/tests/setup.zsh b/tests/setup.zsh index bead068..316074d 100644 --- a/tests/setup.zsh +++ b/tests/setup.zsh @@ -33,8 +33,9 @@ test_autoenv_add_to_env() { # 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.