]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
tests/docker: invoke the DEBUG shell with --noprofile/--norc
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 17 Jul 2019 10:40:01 +0000 (11:40 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 23 Jul 2019 14:53:25 +0000 (15:53 +0100)
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>
tests/docker/run

index 7aebf4b5698c7cf527e49d4eeea9701c3d6574b3..1014871fec03f196e0759720bd3703bff3787249 100755 (executable)
@@ -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