From patchwork Fri Oct 14 06:56:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 615063 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp113036pvb; Thu, 13 Oct 2022 23:58:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4MMlunNACkEsUg7IskQ+pkkPmKD+MXaxO5uf5JV3vH2213Z8F+My7CfHn09SOnpuCl2gHr X-Received: by 2002:a17:907:7203:b0:78d:b8ba:c1a4 with SMTP id dr3-20020a170907720300b0078db8bac1a4mr2497951ejc.60.1665730693899; Thu, 13 Oct 2022 23:58:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665730693; cv=none; d=google.com; s=arc-20160816; b=mUrL4UmvvSVBL155LX1Z287jAosMoCRgTP5dsjVVuSQ9ozSWWpyGAagGFPO6HrSBJR lG7Zld3NI8/0iVUPT+fqz/zvcuDPdbsiPdWYbjhE3XdD3nAZWZpiRxthQhDnV1sxztzr NUjmiLz+zgKl3HW0j839JpoaMm9JTn0ZfQdbnhExlqn+X0fqY8VX79ignr9c3NhRgWJa YlRUa6rg88L+qhB1KGWilaU8cnMCujSo2hG51DR7DFrK0YwdQ0lfYr3Y0yaeQOsS/ogH wL7mHKgSTs6NwcyeYyMWa9eWQtx7kqoD9LKr+NdqHfkVfPAUv3vUAAwHLeTvkE7/RyGU JFRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=VF6XpKFj4J+fI3q133rqSX0NV0wX+JSQdeoSkJOU2uo=; b=m/Uawnn2blFLKj3yEHnQoxv87CVSf6jXT7W/28HpyH/YjFR6EMI1utkzAs0C3LCbhQ WFnhtEz+ECcyFFDPBGv8V10CMc8XYrKL0fqlXBW8EMCNWjYsLnI1gDoPlH2VIakzZVwg e9LsMTJLASfOI6R84gMo2/ALZvVMwiOCPYHur9bdq+JRaa1yiZm5U20DHtC8eG0r7ntK n76xVzzhGAmIz7eI2G9yftk7ndPKxU3DWQRvVG5VdW8u4ZRCh05l6lAAXsQ5rDLVar3O p95N5BhwmrDoidWjv3IcPi1fV0oUsP+O+WfJwH8tPn06pf2hpTPbimrER+AgjF+eGdeb Hs3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gXf38GQZ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id t22-20020a1709067c1600b0078a76811e33si1460113ejo.408.2022.10.13.23.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 23:58:13 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gXf38GQZ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0D35084F3B; Fri, 14 Oct 2022 08:57:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="gXf38GQZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 250A784F28; Fri, 14 Oct 2022 08:57:47 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (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 4293C84EAE for ; Fri, 14 Oct 2022 08:57:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pl1-x629.google.com with SMTP id d24so3935280pls.4 for ; Thu, 13 Oct 2022 23:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=VF6XpKFj4J+fI3q133rqSX0NV0wX+JSQdeoSkJOU2uo=; b=gXf38GQZzo3UqQmEyvuElcWdq3D5Mw/WmjL6DG11cPBMuMeH64BrrYgclN6cUhDevL AhSsWIy+RbKy5hMNLqG8TwGzmGo6ba1I43RVg21D1iqF/fxH0jL0JaL4h4121QyUmXHF srr4bqgI559MJ9SQ5Jz0V68Ws2/VU7ZPh05zQ6zXXyKvIKkOox1wyHqhbq8uE1AOvJIr WQQ/gl/cckaHplP+NuoGYB90CjKP1E4wvRPhe6YZCvzqxKmLHipVnRwkCQp57mxtVJB0 h4mwffHIxbmoUygyFtojoWfwy6Kj4A5rMlKGEddzqmVYU7emntSzdk54bHjfHYxr+njK OnZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VF6XpKFj4J+fI3q133rqSX0NV0wX+JSQdeoSkJOU2uo=; b=qLNnBUY+8dnL0YQFxNbskC9QGQ/f1P1nz56QodswYU+qDPN6pF/RxYdeggZRxGhNiV kolczC01U4qMHFXdtJQjcXjdVFutgCZvDbFx+VxBQc/qxkh9HhLK9rgCr9b53H5/NeDC pbt62hOhBeVDzXl9Hl3vWkcot/SDusqadNreJp3F05RznRZZXZv2B0JZyGroapFx72Er 42sHjHUecxdXc58YC02oU6qbpkeDwe2LgJKR9fJbnaVC8TpPpC9y4hdBNlKfkG2INO6h Cr4q6FgYeiAlihhtZbZrdUu1OOfs/Do2qPHJCqVeDhIB21CGqtjFK1i0yayrCnuPHTNz q0aA== X-Gm-Message-State: ACrzQf1YrOgKVyofhFGREU3LIv21JGyB0WMOsuAEf/KtmZGKiiFI8IhN kOKsYNkQrWS/xt+ZYNAS9tnxitSvUQ403w== X-Received: by 2002:a17:902:d349:b0:183:7fa5:36a6 with SMTP id l9-20020a170902d34900b001837fa536a6mr3824419plk.63.1665730659932; Thu, 13 Oct 2022 23:57:39 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id d67-20020a621d46000000b00550724f8ea0sm850581pfd.128.2022.10.13.23.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 23:57:39 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Takahiro Akashi , Masahisa Kojima Subject: [PATCH v3 5/6] test/eficonfig: support secure boot key maintenance menu Date: Fri, 14 Oct 2022 15:56:59 +0900 Message-Id: <20221014065705.5249-6-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221014065705.5249-1-masahisa.kojima@linaro.org> References: <20221014065705.5249-1-masahisa.kojima@linaro.org> 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 eficonfig test is get aligned with the addition of secure boot key management menu. Signed-off-by: Masahisa Kojima --- No change since v2 newly created in v2 test/py/tests/test_eficonfig/test_eficonfig.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/py/tests/test_eficonfig/test_eficonfig.py b/test/py/tests/test_eficonfig/test_eficonfig.py index 99606d9c4b..f7cb031af2 100644 --- a/test/py/tests/test_eficonfig/test_eficonfig.py +++ b/test/py/tests/test_eficonfig/test_eficonfig.py @@ -8,6 +8,7 @@ import time @pytest.mark.boardspec('sandbox') @pytest.mark.buildconfigspec('cmd_eficonfig') @pytest.mark.buildconfigspec('cmd_bootefi_bootmgr') +@pytest.mark.buildconfigspec('efi_secure_boot') def test_efi_eficonfig(u_boot_console, efi_eficonfig_data): def send_user_input_and_wait(user_str, expect_str): @@ -47,7 +48,7 @@ def test_efi_eficonfig(u_boot_console, efi_eficonfig_data): def check_current_is_maintenance_menu(): for i in ('UEFI Maintenance Menu', 'Add Boot Option', 'Edit Boot Option', - 'Change Boot Order', 'Delete Boot Option', 'Quit'): + 'Change Boot Order', 'Delete Boot Option', 'Secure Boot Configuration', 'Quit'): u_boot_console.p.expect([i]) """ Unit test for "eficonfig" command @@ -349,6 +350,7 @@ def test_efi_eficonfig(u_boot_console, efi_eficonfig_data): press_up_down_enter_and_wait(0, 1, True, 'Quit') press_up_down_enter_and_wait(0, 0, True, 'No block device found!') press_escape_key(False) + press_escape_key(False) check_current_is_maintenance_menu() # Return to U-Boot console press_escape_key(True)