From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:50697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtBHi-0007aB-Jm for qemu-devel@nongnu.org; Mon, 11 Feb 2019 08:06:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtBHc-0004Cn-VP for qemu-devel@nongnu.org; Mon, 11 Feb 2019 08:06:06 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:40108) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtBHb-0003qx-1E for qemu-devel@nongnu.org; Mon, 11 Feb 2019 08:05:59 -0500 Received: by mail-wm1-x331.google.com with SMTP id q21so17151939wmc.5 for ; Mon, 11 Feb 2019 05:05:22 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Mon, 11 Feb 2019 13:04:58 +0000 Message-Id: <20190211130507.8710-10-alex.bennee@linaro.org> In-Reply-To: <20190211130507.8710-1-alex.bennee@linaro.org> References: <20190211130507.8710-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PULL 09/18] tests: make docker.py check for persistent configs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: qemu-devel@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= 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 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: -- 2.20.1