diff --git a/test.sh b/test.sh index d22903a..b0f0a3c 100755 --- a/test.sh +++ b/test.sh @@ -7,6 +7,7 @@ declare -i SUCCEDED=0 declare -i TODTODO=0 declare -i RAN=0 NAME="" +EXTRAENV="" MINISHELL=$PWD/minishell report_header() @@ -71,8 +72,9 @@ when_run() rm -rf /tmp/dir.minishell mkdir -p /tmp/dir.minishell pushd /tmp/dir.minishell > /dev/null - $MINISHELL &> /tmp/got.minishell < /tmp/input.minishell + env $EXTRAENV $MINISHELL &> /tmp/got.minishell < /tmp/input.minishell popd > /dev/null + EXTRAENV="" RAN+=1 NAME=$1 } @@ -188,7 +190,8 @@ minishell: cd: Permission denied /tmp/dir.minishell EOF -HOME=/tmp/dir.minishell/fakehome when_run <