1 Test varstash integration.
3 $ source $TESTDIR/setup.sh
5 Setup test environment.
8 # $ DOTENV_FILE_ENTER=.env
9 # $ DOTENV_FILE_LEAVE=.env.leave
10 # $ DOTENV_HANDLE_LEAVE=1
14 $ echo "autostash FOO=baz" > $DOTENV_FILE_ENTER
15 $ echo "autounstash" > $DOTENV_FILE_LEAVE
17 Manually create auth file
19 $ test_autoenv_auth_env_files
21 Set environment variable.
25 Activating the env stashes it and applies a new value.
31 Leaving the directory unstashes it.