diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2019-07-17 11:40:01 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2019-07-23 15:53:25 +0100 |
commit | 2b0c4fa13f3dd31162582f3bcab635c9026cafac (patch) | |
tree | 1da22e8d7ac27b1110fb20e0f5e7c146ece6a2bf /tests/docker | |
parent | 3a37c13f8cc9dc87aab5de66b6293bb052ff4faf (diff) | |
download | qemu-2b0c4fa13f3dd31162582f3bcab635c9026cafac.zip qemu-2b0c4fa13f3dd31162582f3bcab635c9026cafac.tar.gz qemu-2b0c4fa13f3dd31162582f3bcab635c9026cafac.tar.bz2 |
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>
Diffstat (limited to 'tests/docker')
-rwxr-xr-x | tests/docker/run | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/docker/run b/tests/docker/run index 7aebf4b..1014871 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 |