aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2019-09-04 10:07:17 +0100
committerAlex Bennée <alex.bennee@linaro.org>2019-09-10 09:38:33 +0100
commit71ebbe09e97894f4c573b8fd77e627530a4cba49 (patch)
treeb261f688e6bfd3f10316b67180c7ceaf519a30d1 /tests/tcg
parent63772d5cfda6e1dc1e9f2e17abda8c223fdbdd76 (diff)
downloadqemu-71ebbe09e97894f4c573b8fd77e627530a4cba49.zip
qemu-71ebbe09e97894f4c573b8fd77e627530a4cba49.tar.gz
qemu-71ebbe09e97894f4c573b8fd77e627530a4cba49.tar.bz2
tests/docker: fix "cc" command to work with podman
Podman requires a little bit of additional magic to the uid mapping which was already done for the normal RunCommand. We simplify the logic by pushing it directly into the Docker::run method to avoid instantiating an extra Docker() object and ensure the CC command always runs as the current user. Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests/tcg')
-rw-r--r--tests/tcg/Makefile.include2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcg/Makefile.include b/tests/tcg/Makefile.include
index 73b5626..210f842 100644
--- a/tests/tcg/Makefile.include
+++ b/tests/tcg/Makefile.include
@@ -41,7 +41,7 @@ ifneq ($(DOCKER_IMAGE),)
# We also need the Docker make rules to depend on
include $(SRC_PATH)/tests/docker/Makefile.include
-DOCKER_COMPILE_CMD="$(DOCKER_SCRIPT) cc --user $(shell id -u) \
+DOCKER_COMPILE_CMD="$(DOCKER_SCRIPT) cc \
--cc $(DOCKER_CROSS_COMPILER) \
-i qemu:$(DOCKER_IMAGE) \
-s $(SRC_PATH) -- "