tests/docker: fix "cc" command to work with podman
commit71ebbe09e97894f4c573b8fd77e627530a4cba49
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 4 Sep 2019 09:07:17 +0000 (4 10:07 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 10 Sep 2019 08:38:33 +0000 (10 09:38 +0100)
treeb261f688e6bfd3f10316b67180c7ceaf519a30d1
parent63772d5cfda6e1dc1e9f2e17abda8c223fdbdd76
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>
tests/docker/docker.py
tests/tcg/Makefile.include