[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1 07/24] docker: allow "cc" command to run in u
From: |
Fam Zheng |
Subject: |
Re: [Qemu-devel] [PATCH v1 07/24] docker: allow "cc" command to run in user context |
Date: |
Thu, 12 Apr 2018 16:08:27 +0800 |
User-agent: |
Mutt/1.9.2 (2017-12-15) |
On Tue, 04/10 20:39, Alex Bennée wrote:
> Signed-off-by: Alex Bennée <address@hidden>
> ---
> tests/docker/docker.py | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/tests/docker/docker.py b/tests/docker/docker.py
> index 9444f4bea4..f79213044d 100755
> --- a/tests/docker/docker.py
> +++ b/tests/docker/docker.py
> @@ -399,6 +399,8 @@ class CcCommand(SubCommand):
> help="The docker image in which to run cc")
> parser.add_argument("--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""")
> @@ -414,6 +416,9 @@ class CcCommand(SubCommand):
> for p in args.paths:
> cmd += ["-v", "%s:%s:ro,z" % (p, p)]
>
> + if args.user:
> + cmd += ["-u", args.user]
> +
> cmd += [args.image]
>
> # The compile command we are running
> --
> 2.16.2
>
Reviewed-by: Fam Zheng <address@hidden>
- [Qemu-devel] [PATCH v1 05/24] docker: Add "cc" subcommand, (continued)
- [Qemu-devel] [PATCH v1 05/24] docker: Add "cc" subcommand, Alex Bennée, 2018/04/10
- [Qemu-devel] [PATCH v1 08/24] docker: Makefile.include introduce DOCKER_SCRIPT, Alex Bennée, 2018/04/10
- [Qemu-devel] [PATCH v1 03/24] configure: move i386_cc to cross_cc_i386, Alex Bennée, 2018/04/10
- [Qemu-devel] [PATCH v1 06/24] docker: extend "cc" command to accept compiler, Alex Bennée, 2018/04/10
- [Qemu-devel] [PATCH v1 07/24] docker: allow "cc" command to run in user context, Alex Bennée, 2018/04/10
- [Qemu-devel] [PATCH v1 09/24] tests/tcg: move architecture independent tests into subdir, Alex Bennée, 2018/04/10
- [Qemu-devel] [PATCH v1 13/24] tests/tcg/i386: move test-i386-sse.c to tests/tcg/x86_64/test-sse.c, Alex Bennée, 2018/04/10
- [Qemu-devel] [PATCH v1 10/24] tests/tcg/multiarch: Build fix for linux-test, Alex Bennée, 2018/04/10