From: Alex Bennée Date: Wed, 17 Jul 2019 10:40:01 +0000 (+0100) Subject: tests/docker: invoke the DEBUG shell with --noprofile/--norc X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2b0c4fa13f3dd31162582f3bcab635c9026cafac;p=qemu.git 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 Reviewed-by: Philippe Mathieu-Daudé --- diff --git a/tests/docker/run b/tests/docker/run index 7aebf4b569..1014871fec 100755 --- a/tests/docker/run +++ b/tests/docker/run @@ -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