Skip to content
Snippets Groups Projects
Commit 2b0c4fa1 authored by Alex Bennée's avatar Alex Bennée
Browse files

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: default avatarAlex Bennée <alex.bennee@linaro.org>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
parent 3a37c13f
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ echo "* Prepared to run command:"
echo " $CMD"
echo "* Hit Ctrl-D to continue, or type 'exit 1' to abort"
echo
$SHELL
$SHELL --noprofile --norc
if "$CMD"; then
exit 0
......@@ -72,7 +72,7 @@ elif test -n "$DEBUG"; then
echo "* Hit Ctrl-D to exit"
echo
# Force error after shell exits
$SHELL && exit 1
$SHELL --noprofile --norc && exit 1
else
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment