Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4DE34C25B50 for ; Mon, 23 Jan 2023 18:29:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5CF2C8563A; Mon, 23 Jan 2023 19:29:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="EyHfaEd7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B8E678563A; Mon, 23 Jan 2023 19:29:51 +0100 (CET) Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1813085718 for ; Mon, 23 Jan 2023 19:29:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12d.google.com with SMTP id a9so5841005ilb.0 for ; Mon, 23 Jan 2023 10:29:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pWqgBgM7bI7OYvsx1+3uHxOkeQNbytDAr9t07dbJXb4=; b=EyHfaEd7KjIeYVtR7ZfyQ/9q8opeqXeOgvEIuCxpR1nQS8eLTKeIqgUGMRQ2Oh0/Ng eUk5LIx+L/eWEUgcop6zIn59rc0XQWqOdd4JNU1on2xNQ6L2Hoawf6cpCUiKKxVIbWhq +otbct9iR94QoxcWLYOd6nK/ChiPB9IQwGgVU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pWqgBgM7bI7OYvsx1+3uHxOkeQNbytDAr9t07dbJXb4=; b=a0ad3R55SbBMqKCS65jeHXK/TbH+t9LxuxdC9l/BGoOmsFcWvvtC8jtgoGJ8CAchw4 RfIRBvigcd4OOvQfNawkJi7/NCYOFmP1K68AirdWtlUBeFd/gsKtIP4nNpfX9snxKK1u JPnLY7TluBv+Xnsh30i8fqoExt/yj3bRDy0NST3eK1/nxkAe8NVh5tRskc496zpnNRAz 372iGo+dzsuR9BoBosqksVD2rdVjTns1nVSeGW/TeMyklJgGWYiBnv3D1da+ISWSR5+6 uMEMenH7RolX+0W/jLO1Ho1M3syy4kfz7gV7OxtF4x8Ng/6PaWPcIi8Bft2Z7IvZEzPK KwzQ== X-Gm-Message-State: AFqh2kojAtVgbehYy76w9zhE4iyA4QkO6uwh8keSkj/6PYf/22UiluJ1 g5p8bqaDZ5IKnlPvX9DnOZB+jKv+TxSrSAMm X-Google-Smtp-Source: AMrXdXse2/vPNfZg5rRC4W4ZbDA8liDhFuDcZL29eXNEuzYqR4ukxRvljrj8zrz3mW1c4hTLe5PVoQ== X-Received: by 2002:a05:6e02:1be7:b0:30f:529a:f737 with SMTP id y7-20020a056e021be700b0030f529af737mr12023229ilv.20.1674498587436; Mon, 23 Jan 2023 10:29:47 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id p32-20020a056638192000b0039e89ea68f9sm13016593jal.135.2023.01.23.10.29.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 10:29:47 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Alper Nebi Yasak Subject: [PATCH] binman: Fix a test-coverage regression Date: Mon, 23 Jan 2023 11:29:41 -0700 Message-Id: <20230123182941.1747526-1-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.246.g2a6d74b583-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Unfortunately a recent patch snuck through without the require test coverage. Fix it. Signed-off-by: Simon Glass Fixes: 571bc4e67d3 ("binman: Support positioning an entry by and ELF symbol") --- tools/binman/elf_test.py | 13 ++++++++++++- tools/binman/entry_test.py | 19 +++++++++++++++++++ tools/binman/test/embed_data.c | 1 + 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/tools/binman/elf_test.py b/tools/binman/elf_test.py index 082a3e1d28c..8cb55ebb815 100644 --- a/tools/binman/elf_test.py +++ b/tools/binman/elf_test.py @@ -242,7 +242,7 @@ class TestElf(unittest.TestCase): end = offset['embed_end'].offset data = tools.read_file(fname) embed_data = data[start:end] - expect = struct.pack('