]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - tests/varstash_export.t
Cleanup tests/varstash_export.t
[zsh-autoenv.git] / tests / varstash_export.t
index d666d6666bfaddcefac8b1a8e8bd99c4a00ee632..5c259b7ddb1d3e5c4de12becb8c88ebf18a9666a 100644 (file)
@@ -1,6 +1,6 @@
 Test varstash with exported variables in subshell.
 
-  $ source $TESTDIR/setup.sh || return 1
+  $ source $TESTDIR/setup.zsh || return 1
 
 Setup test environment.
 
@@ -35,24 +35,15 @@ The variable is not available in a subshell, only the exported one.
 
 Activate autoenv in the subshell.
 
-  $ $SHELL -c 'source $TEST_AUTOENV_PLUGIN_FILE; echo ${MYVAR}; echo $MYEXPORT'
+  $ $SHELL -c "$TEST_SOURCE_AUTOENV; echo \${MYVAR}; echo \$MYEXPORT"
   ENTER
   changed
   changed_export
 
 "autounstash" should handle the exported variables.
 
-  $ $SHELL -c 'source $TEST_AUTOENV_PLUGIN_FILE; cd ..; echo ${MYVAR:-empty}; echo $MYEXPORT'
+  $ $SHELL -c "$TEST_SOURCE_AUTOENV; cd ..; echo \${MYVAR:-empty}; echo \$MYEXPORT"
   ENTER
   LEAVE
   empty
   orig_export
-#
-# Exiting the subshell should restore.
-#
-#   $ pwd
-#   */varstash_export.t (glob)
-#   $ echo $MYVAR
-#   changed
-#   $ echo $MYEXPORT
-#   changed_export