From patchwork Thu Feb 7 18:37:37 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: 157775 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1035150jaa; Thu, 7 Feb 2019 11:04:31 -0800 (PST) X-Google-Smtp-Source: AHgI3IbhsCHsUHD4a03ZiYCqEyyl2OOsy/w94kgX22WN8RBIf3VS/5FcmZO2yG9EqAVKMqAwiKnX X-Received: by 2002:a5b:98c:: with SMTP id c12mr14119931ybq.280.1549566271530; Thu, 07 Feb 2019 11:04:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549566271; cv=none; d=google.com; s=arc-20160816; b=yH9wlZQhuiG3iHDgvautpKS3B8yEEuyaBOEsKp8BJi2MdceBtKqzvWciPafXmZCQ6R LP5dmV6GdBdAFr7krEcjz7YHvlNIP6r11T2GfsUWbrxh0tFxkYYTRRfyzkG28GnHilp5 P/xzHaQ6cRpCJhhMXlpDfkB8xRp6wxleaQMdHUgIBbw+BRT+V74as6OR2J7DROQ1PWlb sNyUopPnXqedrgrSCy1/gY/YMDD3fvPsWaOr35RMm69U9SYV6E0BI/syR55HLpcoTVNU VrIbyVJmINUk4AGRqLQSH0xeDfFeD/GszR6ZTaUsT2Cm1yAr4rY8l6LnsaUJcbxTBtIo Uegg== 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=RI3hIy4OUCm1BggeTdQKyOo4KLrZ8N+o4uTqKehgzt0=; b=nqVxJyBiII5P7e7b6n9CdYKJB8G6T4B0a3j3vw4tkzA0PuxbC56VaBTj3itpxdwIct dJ3nqCMWAZRaCcsnxmLnQmK2JZPyOBePOi6CG9R38pStxyAgp7d7pmFPGABL0h0SLimZ Uiyd4JTMSqyqZFuj84366anAaXtIgp/8Qgqi9Th8VKAhVbpXPkpLF5R2hgzVNzM2H8ZY MFKDyIT1KpVDSN/RiKeo+d/typ4K9OKY6RQV/gPdcZpmZ8O0ANcrYtarYMNVu45guwSX RWRKyioP1m0U3NzS7yOgZomsWOM3N7rUv4YU0khc8RtEUA4DGyOk2qaEk4ZHi6dcpPA+ wqUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=W2crA9k2; 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 m62si6006928ywm.395.2019.02.07.11.04.31 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Feb 2019 11:04:31 -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=W2crA9k2; 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]:45478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1groyN-0003ir-2h for patch@linaro.org; Thu, 07 Feb 2019 14:04:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1groYn-0000KN-La for qemu-devel@nongnu.org; Thu, 07 Feb 2019 13:38:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1groYk-0007aI-0i for qemu-devel@nongnu.org; Thu, 07 Feb 2019 13:38:03 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:47013) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1groYg-0007S6-Ah for qemu-devel@nongnu.org; Thu, 07 Feb 2019 13:38:00 -0500 Received: by mail-wr1-x42e.google.com with SMTP id l9so892292wrt.13 for ; Thu, 07 Feb 2019 10:37:56 -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=RI3hIy4OUCm1BggeTdQKyOo4KLrZ8N+o4uTqKehgzt0=; b=W2crA9k2iIjT+vKBSVwCvudwTUg6/jzyt3L9Bt2Liy8yw9zlXnciUgoGNUZiC2XDPg lp2BlJQGryYbong8h9+n20TRGu5aekVto9gPcGPefK8dtSc/ZvlkZfCUsBCDeRh1ZU7q wc08dgeIs63wCEWZzG9B24fw4lM6YNoJQtEMMnZIq5IR+PNKh0++Jrn9RHyUD9i0iYkb IRYlFFjqJYshHY6zAzNkZq40rfu+QbxT3/Ne1AelctKphqkRDSYALMHLcHTelrNhe54H 0ZLthNSYnVeZ6+6da+9hGMYV4chluQA9CAfriFzHYliGp27BUSHWAjRbxZ5PXkTceNX6 /xOQ== 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=RI3hIy4OUCm1BggeTdQKyOo4KLrZ8N+o4uTqKehgzt0=; b=dFz9NraR+72HYjhC9DaVB8szLDK7+H3cv3nS0hC0RYxT4Tdk5j5jeCT/Egy2LUec9b rWvl/dUsbPHlW+uHgSxxIpwkAIAXe64vQ0rS8JBWth6b/nE1wZ4xnkiqgc4sUL4F7sfe UOwsUcT8JzutQl+FxOW91upvHvLjGjghmPpgUuA3AjYud79Ub1+QVeubr9hS09HIevIr I5sRrnZoXu0D4ayZmyCkOJtEABJlGcAJt/r40AQJKwu2e7siZTydztvAHDvGf9UU45F7 kDPFane55NQ4y4/i2yC+VYnr8p6uLVi6qQoq83FJf0Hr7dYhtAsRuoIntpw3f9bGuraE h91A== X-Gm-Message-State: AHQUAuYc4BRyuEnYGRIfg4M+mk1pUEKMGUWYbG8tJ1CUd9KSOdCOfyXs RIyek6v2q5dNvd9iuXcTjKbGBQ== X-Received: by 2002:adf:ed11:: with SMTP id a17mr6099844wro.283.1549564675696; Thu, 07 Feb 2019 10:37:55 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id f130sm29479wme.41.2019.02.07.10.37.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 10:37:53 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0A04A1FF89; Thu, 7 Feb 2019 18:37:45 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 7 Feb 2019 18:37:37 +0000 Message-Id: <20190207183744.5054-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190207183744.5054-1-alex.bennee@linaro.org> References: <20190207183744.5054-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::42e Subject: [Qemu-devel] [PATCH v2 09/16] 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: qemu-arm@nongnu.org, =?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.20.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: