mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2025-12-14 18:25:12 +02:00
tests: cleanup test_full (#86)
Changes tests/varstash_export.t to use `$TESTSHELL` provided by cram.
This commit is contained in:
@@ -29,20 +29,20 @@ Activating the env stashes it and applies a new value.
|
||||
|
||||
The variable is not available in a subshell, only the exported one.
|
||||
|
||||
$ $SHELL -c 'echo ${MYVAR:-empty}; echo $MYEXPORT'
|
||||
$ $TESTSHELL -c 'echo ${MYVAR:-empty}; echo $MYEXPORT'
|
||||
empty
|
||||
changed_export
|
||||
|
||||
Activate autoenv in the subshell.
|
||||
|
||||
$ $SHELL -c "$TEST_SOURCE_AUTOENV; echo \${MYVAR}; echo \$MYEXPORT"
|
||||
$ $TESTSHELL -c "$TEST_SOURCE_AUTOENV; echo \${MYVAR}; echo \$MYEXPORT"
|
||||
ENTER
|
||||
changed
|
||||
changed_export
|
||||
|
||||
"autounstash" should handle the exported variables.
|
||||
|
||||
$ $SHELL -c "$TEST_SOURCE_AUTOENV; cd ..; echo \${MYVAR:-empty}; echo \$MYEXPORT"
|
||||
$ $TESTSHELL -c "$TEST_SOURCE_AUTOENV; cd ..; echo \${MYVAR:-empty}; echo \$MYEXPORT"
|
||||
ENTER
|
||||
LEAVE
|
||||
empty
|
||||
|
||||
Reference in New Issue
Block a user