[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 10/49] docker: allow "cc" command to run in user
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v4 10/49] docker: allow "cc" command to run in user context |
Date: |
Thu, 17 May 2018 18:46:39 +0100 |
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
---
tests/docker/docker.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/docker/docker.py b/tests/docker/docker.py
index 59bce9f19a..37bfa98005 100755
--- a/tests/docker/docker.py
+++ b/tests/docker/docker.py
@@ -417,6 +417,8 @@ class CcCommand(SubCommand):
help="The docker image in which to run cc")
parser.add_argument("--cc", default="cc",
help="The compiler executable to call")
+ parser.add_argument("--user",
+ help="The user-id to run under")
parser.add_argument("--source-path", "-s", nargs="*", dest="paths",
help="""Extra paths to (ro) mount into container
for
reading sources""")
@@ -430,6 +432,8 @@ class CcCommand(SubCommand):
if args.paths:
for p in args.paths:
cmd += ["-v", "%s:%s:ro,z" % (p, p)]
+ if args.user:
+ cmd += ["-u", args.user]
cmd += [args.image, args.cc]
cmd += argv
return Docker().command("run", cmd, args.quiet)
--
2.17.0
- [Qemu-devel] [PATCH v4 00/49] fix building of tests/tcg, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 02/49] configure: add test for docker availability, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 01/49] docker: add "probe" command for configure, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 04/49] configure: move i386_cc to cross_cc_i386, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 05/49] configure: allow user to specify --cross-cc-cflags-foo=, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 06/49] configure: set cross_cc_FOO for host compiler, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 10/49] docker: allow "cc" command to run in user context,
Alex Bennée <=
- [Qemu-devel] [PATCH v4 07/49] Makefile: Rename TARGET_DIRS to TARGET_LIST, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 11/49] docker: Makefile.include introduce DOCKER_SCRIPT, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 03/49] configure: add support for --cross-cc-FOO, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 12/49] tests/tcg: move architecture independent tests into subdir, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 08/49] docker: Add "cc" subcommand, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 09/49] docker: extend "cc" command to accept compiler, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 14/49] tests/tcg/multiarch: enable additional linux-test tests, Alex Bennée, 2018/05/17
- [Qemu-devel] [PATCH v4 31/49] tests/tcg/aarch64: add Makefile.target, Alex Bennée, 2018/05/17