tests/docker: invoke the DEBUG shell with --noprofile/--norc

It's very confusing when things work in the debug shell because the
environment is different from what the test is running. Fix this by
ensuring we only have the inherited environment from the run shell.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
Alex Bennée 2019-07-17 11:40:01 +01:00
parent 3a37c13f8c
commit 2b0c4fa13f

View File

@ -62,7 +62,7 @@ echo "* Prepared to run command:"
echo " $CMD" echo " $CMD"
echo "* Hit Ctrl-D to continue, or type 'exit 1' to abort" echo "* Hit Ctrl-D to continue, or type 'exit 1' to abort"
echo echo
$SHELL $SHELL --noprofile --norc
if "$CMD"; then if "$CMD"; then
exit 0 exit 0
@ -72,7 +72,7 @@ elif test -n "$DEBUG"; then
echo "* Hit Ctrl-D to exit" echo "* Hit Ctrl-D to exit"
echo echo
# Force error after shell exits # Force error after shell exits
$SHELL && exit 1 $SHELL --noprofile --norc && exit 1
else else
exit 1 exit 1
fi fi