Message ID | 20180419135901.30035-11-alex.bennee@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp678703ljf; Thu, 19 Apr 2018 07:06:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx48KHfOtPDT6ZtD52Q+9P2wAH6BgcQv2Vwn3sVkmpbXmejfFYu2PJoywWAcKHYjx+S4VycES X-Received: by 2002:ac8:1a41:: with SMTP id q1-v6mr6447092qtk.191.1524146795891; Thu, 19 Apr 2018 07:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524146795; cv=none; d=google.com; s=arc-20160816; b=Rjj7KMite6aSMCyR09dtBXxx22/dpFRV+wzMBBF9vXoDFBtWUZBNVQthhVt69ozaGF ProT0VF336Jds9yCjPUgDgEMTvf97RE4xiA7DkeZdJHXhHSkfSc1fRz/LDgyB9ZRJTsA KhMN0GZdBIkZAREA1ewVMYxgOj6o9hBx6HvGafbb8YrXdjb7hAvbFOs5wAvlkA3HCRpA p8qz3gQ55DHm4tqNr94nSxEScDVewkqu7lAXqSXKtcEeZX/whOJhALQ7Du+VZ4/FG9H4 c4Rq9TB/rvxZs2+Uc87pghLuSOS6stYvgtn38PQN4PRDhisXswIeQ/tSm0j0tpMV8962 ypBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=yx5ucHfklmdWD5NFIiC6j32FmmfKfpWkJIX7Slm13Jo=; b=IR28N6DNZ2cLusyFWJn7GmVfiTDTbHf2Dj8X1T16vnmCqJEUwQGbw0D+cjMkAC11Uh N64QhOdhW/Y3P1626CIwYIH9WtF+Zt3RltqYzngrr0zUwEP0pX1Jkeb1Bhw9lQ4SQB0o d/7cGLcs+/htMN5z8EBhSCvgxmnIBXyZkcSCtt2jXlZNQArsSwHOAREd7q2Ihrk4+Mp/ P+8dl3AfDQHekyEJMbdvkbJD3XrBjIsEA/LZfttcLvXi1+AL01YW3llOc77pndMfqpc5 6hs9ZvA8fIw7AKabttqXK5zWGsIWFAt/5n0GdjbzAzRy4d/NdnBeO3UtKFpq7UyzJDJ6 AOJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BZIPBNkV; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id v73si3978367qkl.180.2018.04.19.07.06.35 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 19 Apr 2018 07:06:35 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BZIPBNkV; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1f9ACp-0003Cu-7b for patch@linaro.org; Thu, 19 Apr 2018 10:06:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1f9A5l-00064V-Fr for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1f9A5j-0002LY-R2 for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:17 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:33467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1f9A5j-0002Jc-Jk for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:15 -0400 Received: by mail-wr0-x241.google.com with SMTP id z73-v6so14374717wrb.0 for <qemu-devel@nongnu.org>; Thu, 19 Apr 2018 06:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yx5ucHfklmdWD5NFIiC6j32FmmfKfpWkJIX7Slm13Jo=; b=BZIPBNkVyfndTH+w0QMRpp10hqN/G+WXztabFd+72sY3h1yD15fqEqGI8dd93MXzY0 WJ8hC2w8bUDzIvbRvNhaup9XlHldAa6eeRyQYF1JRdaeXJpChEbQH4SHSivQm/lT7+cA cbjCAaQR0J9HZY0hSO7KvI727py6PfVFlOQZ0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yx5ucHfklmdWD5NFIiC6j32FmmfKfpWkJIX7Slm13Jo=; b=Rx3NFZr2aMuO1BxvWv6+Bd495a736aTR8MFSzp+xUNPdl2cYRrjawdfiFKjA0/t9Af ojqf0bAnFQoDcQnWpshE82RbhB0Bqq4pqy7OaifYtrycPYd4BONCHWipXqQDN28xoJJu HHMKgo8YjeFzhtH9LChwMoBEFV1nfQBrnRQWPtkyMbKMLqLZcks/7fNWsGIurocAdNac TT10pgaPEUMLt6uXph5SptI/j5WaFgNaSsMBk+RSbifNnc3InlKN21I5hxOJM98bHfNM TNQht36vu3QS863JehLnol2jk+ZklbMpLSADWuKXi3Zi3zOFWlrVEbKef8CTFBcBVDS1 1n7g== X-Gm-Message-State: ALQs6tArvgf0FfCReOG/UJEEtYvfb3FwXAr7/jM9SplwzfyY3TPvBwXa EfLDz1sWKeTcwWyDqCh5KEQ6LA== X-Received: by 2002:adf:b08e:: with SMTP id i14-v6mr5247820wra.9.1524146354476; Thu, 19 Apr 2018 06:59:14 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id m4-v6sm3282822wrj.47.2018.04.19.06.59.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 06:59:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 48A2D3E0402; Thu, 19 Apr 2018 14:59:02 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Thu, 19 Apr 2018 14:58:28 +0100 Message-Id: <20180419135901.30035-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419135901.30035-1-alex.bennee@linaro.org> References: <20180419135901.30035-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v2 10/43] docker: allow "cc" command to run in user context X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
fix building of tests/tcg
|
expand
|
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)