From patchwork Fri Jan 25 14:00:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 156583 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp399543jaa; Fri, 25 Jan 2019 06:07:01 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaq6uZ+PIMubFTBqTt1wKne39qx7Os9Yn0aIbd4ZkDdBpUvYVxmjurZeZstvjXJO2F+zQJM X-Received: by 2002:a05:6000:11c3:: with SMTP id i3mr6861041wrx.221.1548425221673; Fri, 25 Jan 2019 06:07:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548425221; cv=none; d=google.com; s=arc-20160816; b=0sNCkOxGtLkIsz+a5cLMqyT+DISgq/JAQw0UxYs0reLEYASigctcGQeJX0iHVvEWrz KnKe66qOwmU+nph+ozppsqnBEWwQrp8KAOIubtuYw5LqRLszDhuI+05awKaRoaCcl0cD 59wsQ5omZ/dN18GeLR/lfIk0KjpxggrDGgEv1ZyuS497FvEOUPbEF+Gff8sJmNbQ279d aIwTga+kWPuL7Cuztbm7jG6+Bi5Zc1TvPtbz3WX6lE0Zyhe/R7DcG5MBoXJRRcO+o7Kp w1oyz1zklkGihQpa70bX+j0vbjvysaH4RDSAUZ7IRSZc/2YW18CGn4Ki4/4ltqpwQCth YkdQ== 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; bh=LFFOZDq0lluE/cgAdvtQnrwEFnFbXn1gYJK5UE66RIE=; b=cEkt86r5CVhzAQUw2+RKz0eiHvVYR9VI+LSli9ww4eeGf1PkHX8vI1brslhPqETeRH WF8YMucIAOjbeYqH1r7NJiWgNfLvAXuxfVyuI/N5fC8UhXdZ4EmASYo8x0D8V0nuT6md ph68cd2WVES83OQ/2F+E80KmcS8aGq0WmJiNnTweuCGkTWJzvN3ZGUr5R4eP2oh13bp6 SbWG3kRp+Z+73jqliU0DDwlFwzShhJYP6GvJzk6ckG6SB/VjE9RVXxmSLhtlcBe+f0kD oWKx0hc/wrOXHmQCGSJ+c26imXk73UGX/QVpYTqylU6KmeLWeT7+C562I7Ra11e13UOn Q76g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Yk+CLzd2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i12si1176117wrr.228.2019.01.25.06.07.01 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 Jan 2019 06:07:01 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Yk+CLzd2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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 ([127.0.0.1]:45221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn28K-0007R6-KZ for patch@linaro.org; Fri, 25 Jan 2019 09:07:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn225-0003WQ-Du for qemu-devel@nongnu.org; Fri, 25 Jan 2019 09:00:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gn224-0000iP-07 for qemu-devel@nongnu.org; Fri, 25 Jan 2019 09:00:33 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:33769) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gn221-0000eQ-Tj for qemu-devel@nongnu.org; Fri, 25 Jan 2019 09:00:30 -0500 Received: by mail-wm1-x333.google.com with SMTP id r24so4879093wmh.0 for ; Fri, 25 Jan 2019 06:00:27 -0800 (PST) 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=LFFOZDq0lluE/cgAdvtQnrwEFnFbXn1gYJK5UE66RIE=; b=Yk+CLzd28oxQhF5TF0yZBpnLlD9TdBR8BHsyqgdEQweNzl/mN1P4TURPhZKIT9hgtA 8Dx0sTrTE3sWVSW1hE2wQ70b5Zvftg5o+73Tpj0jbwMAcKgyC41StgW4blO1onCbpQi9 jCrEe2eX7eK1zdmdeEQwWOYuJOcJIc0K7TTd0= 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=LFFOZDq0lluE/cgAdvtQnrwEFnFbXn1gYJK5UE66RIE=; b=i4Y3yXPyLqq2LZv+c1ciYhvniJ+HLYp4E++/BAby/UW2/zN5f1wmEjb4UdTZwRAQvW osWtpyMY2+OFohuaPTA06jEenTPco2/L13jhwc6bn/WI6v5wkpBfDxoRrb7JxS7BGSLG t5XJHUZ9KluiFOpEFQL/vww4Gvf/V1YCNNJuy5GRFhrYGdiRt6N3jY/Ek2N8bp6lZ4b7 VcWwzii/BVxthRsnVJ+JsW9UNtnSadRcvzEFtgjTEPsDx/vy1VZQ61vSaEbVwlaK/STQ N+G+U2xoak92Kyyz+S/44Jqcds8qG9bDJU4J2PyFEK5dYFZUzH2SQXM8oI2AD+/jRxG5 T+DQ== X-Gm-Message-State: AJcUukd3XO7bY3BDyMCoCi2LdyY8xek7zoo7oWdOO4l/LbhAG9nfS7s6 66mq6qr6u3wtboOr+K9U72gaOXDeAbc= X-Received: by 2002:a1c:ef11:: with SMTP id n17mr6907225wmh.112.1548424826745; Fri, 25 Jan 2019 06:00:26 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p6sm135692875wrx.50.2019.01.25.06.00.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jan 2019 06:00:23 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 2DB5F3E06E0; Fri, 25 Jan 2019 14:00:18 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 25 Jan 2019 14:00:10 +0000 Message-Id: <20190125140017.6092-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190125140017.6092-1-alex.bennee@linaro.org> References: <20190125140017.6092-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::333 Subject: [Qemu-devel] [PATCH v1 07/14] tests: make docker.py check for persistent configs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" binfmt_misc configured with the "F" flag opens the interpreter at config time. This means it can use an already open file-descriptor to run QEMU so there is no point trying to copy the binary into a container. Signed-off-by: Alex Bennée --- tests/docker/docker.py | 5 +++++ 1 file changed, 5 insertions(+) -- 2.17.1 diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 30f463af9f..768728785f 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -127,6 +127,11 @@ def _check_binfmt_misc(executable): with open(binfmt_entry) as x: entry = x.read() + if re.search("flags:.*F.*\n", entry): + print("binfmt_misc for %s uses persistent(F) mapping to host binary\n" % + (binary)) + return None + m = re.search("interpreter (\S+)\n", entry) interp = m.group(1) if interp and interp != executable: