Message ID | 20180517174718.10107-11-alex.bennee@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp251927lji; Thu, 17 May 2018 11:02:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpxr5piLYDflJMeglqLuFmD8ABgzkiY0eUdwoZOEF0kDLrIa+LyusFTFmDdqJhlV3278yMj X-Received: by 2002:a0c:96cf:: with SMTP id b15-v6mr6144479qvd.124.1526580158941; Thu, 17 May 2018 11:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526580158; cv=none; d=google.com; s=arc-20160816; b=dOf3X14dsWHAO9e6O1dH1kavvOqszYh2cdlDLWW4NGFB77Y2aHsZQyqrBy/yH9pHgh 77gWo6GBVLEHklKoP2jP+Y3bk9M3T98zaSOgMnxh8Cbq0L34BQ4/PHfRIehl4bI6tVbA m5eso7se0FAHB6S+jf0VmJR0FTaq2rKPskjXpIGwra6XlnxUwQfX7xTYlx4CZC33rzz8 pTcuuc08cA61+5SxwN9CqEEK68n/FTD/FIQS7nfZj+8kqzIBqrMHgxkYX5RHAJ7jXJ5R UKlILi2V4BUmgYZwJ8DYR5k/e0xpLCtSV5HI3pokv9VAiD0vG+KdstYLc8RzgddwNVay GIrg== 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=qk6C/2pXOtK/cMkJVU0nSkN5sd6y5FU0wnwwwqIO3E1fuhQNLwzIqF8YopLtSe//F7 DKGoS+cVqOXa0m+HRvh5sk4jeTpDNCzclunugsszoxm5NM6ooLaAVUR6RlPAlXwAxz8K +tDp8aP2XJFsR9wv3+5I/7Rq64NwpVHwi47GTAV/7qrYcMVHBlGiXSd50MBNt+SIN205 MuIP3r5M3y7wJB948fegRyEtbUsZxCgeMJnJqqT84xUBx5u8q59O8vEviNoNvXMqdcD+ D3FsXr32TmpyAus+ztzN7I462VTflKvdfYFkB4DLxbQfLvtbO2QHLitrhGNa/fEKm//+ Zghg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MmbqFnae; 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 f130-v6si2220442qkb.193.2018.05.17.11.02.38 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 May 2018 11:02:38 -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=MmbqFnae; 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]:38499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1fJNEc-0001II-D2 for patch@linaro.org; Thu, 17 May 2018 14:02:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fJN02-0006Hw-DP for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fJN01-0003YY-Ft for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:34 -0400 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:42860) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1fJN01-0003YH-8m for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:33 -0400 Received: by mail-wr0-x234.google.com with SMTP id t16-v6so3367974wrm.9 for <qemu-devel@nongnu.org>; Thu, 17 May 2018 10:47:33 -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=MmbqFnaebHpT2rsqqyV3940PRBY4/VIxmRxs5Z1QsBI8GvhtE4HbHW/qUGkLQCmo0k JxmRw8SON15bVDd7rJWL5lL5bvS0tKsXUEod6dsvhp5/DGexdkQXghxyFCrV89UOIklZ +g1l+zXk22l25d0G0u1/fjReYd/g7IFNiCGlo= 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=GXQID43QWWXvWzKZwgIn/7zZZsvdsl2OGQnvPJXwWHAV2f6H22Mk5bBsNuqDIu+Eyz p5Ae9s0/e3hVYAjETMEaqCLCOqngxwqatl8JsFI6ImG3hFyswQbeEZWNVg4rPwtqh7eN Z9mKrQfTn0DdiyD0XBu7yYNk9ll2HZe3vpxCUpDFysEvGkaP2jlJmMcHET5dn8QQu5wr yneYPElso1CCmiPPfJN4+rub7SsjE98gKdrmpDT+PfotWJRrFzObYSb6YBlZa6uBc1jL JqcyP+yuEHVo69ydrb/kjTHTycudPwlTRG6gVaq8Cy9v85oZZ1UedAmCv5obTFbEtwrW fymg== X-Gm-Message-State: ALKqPwdoqZK4x2lT6JqsHW5KOkuhL/gvuaWcGjjLHqyJvI7DE10qzqCg cJw2gm8U9JxdfhjZfDadKJW7TQ== X-Received: by 2002:adf:a673:: with SMTP id k106-v6mr5437632wrc.231.1526579252135; Thu, 17 May 2018 10:47:32 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t198-v6sm6312161wmt.23.2018.05.17.10.47.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 10:47:27 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 8D6003E0DD1; Thu, 17 May 2018 18:47:19 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: 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, 17 May 2018 18:46:39 +0100 Message-Id: <20180517174718.10107-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180517174718.10107-1-alex.bennee@linaro.org> References: <20180517174718.10107-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::234 Subject: [Qemu-devel] [PATCH v4 10/49] 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)