[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 19/23] tests/docker: invoke the DEBUG shell with --no
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PULL 19/23] tests/docker: invoke the DEBUG shell with --noprofile/--norc |
Date: |
Tue, 23 Jul 2019 11:36:08 +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 <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
diff --git a/tests/docker/run b/tests/docker/run
index 7aebf4b5698..1014871fec0 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
--
2.20.1
- [Qemu-devel] [PULL 04/23] tests/docker: Install Sphinx in the Fedora image, (continued)
- [Qemu-devel] [PULL 04/23] tests/docker: Install Sphinx in the Fedora image, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 06/23] tests/migration-test: don't spam the logs when we fail, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 08/23] shippable: re-enable the windows cross builds, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 05/23] tests/docker: Install Ubuntu images noninteractively, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 07/23] tests/dockerfiles: update the win cross builds to stretch, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 09/23] tests/docker: Install Sphinx in the Debian images, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 10/23] tests/docker: Install the NSIS tools in the MinGW capable images, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 12/23] tests/docker: Install texinfo in the Fedora image, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 23/23] gitlab-ci: Remove qcow2 tests that are handled by "make check" already, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 11/23] tests/docker: Set the correct cross-PKG_CONFIG_PATH in the MXE images, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 19/23] tests/docker: invoke the DEBUG shell with --noprofile/--norc,
Alex Bennée <=
- [Qemu-devel] [PULL 21/23] tests/qemu-iotests/group: Remove some more tests from the "auto" group, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 17/23] hw/i386: also turn off VMMOUSE is VMPORT is disabled, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 14/23] buildsys: The NSIS Windows build requires qemu-nsis.bmp installed, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 22/23] tests: Run the iotests during "make check" again, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 18/23] travis: enable travis_retry for check phase, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 13/23] buildsys: The NSIS Windows build requires the documentation installed, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 15/23] tests/docker: Let the test-mingw test generate a NSIS installer, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 20/23] tests/qemu-iotests/check: Allow tests without groups, Alex Bennée, 2019/07/23
- [Qemu-devel] [PULL 16/23] NSIS: Add missing firmware blobs, Alex Bennée, 2019/07/23
- Re: [Qemu-devel] [PULL for 4.1-rc2 00/23] testing updates (green CI!), Peter Maydell, 2019/07/23