From patchwork Tue Oct 4 14:35:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 612276 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp217159pvb; Tue, 4 Oct 2022 07:36:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7se8TOCvvr1lnLkJ2Nzj8kQRTdt9J2AMo0MRZYNW6cGXGFQXybSf+DlM8juaJSr+PFZYnS X-Received: by 2002:a17:907:7fa3:b0:782:3034:cbc5 with SMTP id qk35-20020a1709077fa300b007823034cbc5mr19225835ejc.96.1664894176995; Tue, 04 Oct 2022 07:36:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664894176; cv=none; d=google.com; s=arc-20160816; b=muDzOqputtG7Gmnn+y3+mD6qBZfnduTa/3pUwOhoEr8n9IClnB9B/h88VCjWxPoh/9 aWN1sI1wLGVh7bPS5//rG+NIy7fTaHpimOf62kEiaYtQ7p9UuBR2uiwkXe2xF6wb553Z iFZEE6qFX9kkr6H3zgt4WzcEu9am/xeSD83FCfayqVWhaZY8XOgV6QJ5qU+1RPVLwATK PCTzEKtRr1/UzoBY5DJx53ejen49WbPic5TRcCboaGveuzUdIVm9umCNZLT+DEGHUp2W xELcMqazJ9qYNAfLgEAXKEBiQWQUl1AIzYAGAbKOdbYUBOetymp4POJQQGI3FV/r0K3P mJYQ== 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=fzUmK719xPG68TqfZ75SsQJTlX/yTGki8xwdjaqZRFY=; b=kDsuZPjHcwJM3ORupzF+FpRBmYWVkJB1b+2el77jMB5QTskApog5u8DGpWL0qL8is1 9Nw3NfkIDJtuemh5Ta484M3Pm7Sd3mAssrgBdZg/jxOYlJZVL/ij/d0S8AowJkXzt45B p4yCJD/AyuED9WH9vb9TAx3Js0GH2xlL14jC73NtR/Ch2fUSvtuXlWCNCpMKpEpiPvBc AkQ86DvTNFwHvQz7/OzimCxhOJJQ8fVv/h5IFXma4hutXxpIs7fQ77wN0nkfwggqVItn O7Ig2M2g4EvK6hHUANCStbWt8dMZbi9PC/ep2+Z1UlyBAABODHxCiFXsqiPczJ9sDC9o 2uJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MrAfDIem; 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 b25-20020a170906d11900b00783ef8f419dsi8609608ejz.1008.2022.10.04.07.36.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 07:36:16 -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=MrAfDIem; 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 4E17D84E08; Tue, 4 Oct 2022 16:35:51 +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="MrAfDIem"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 78CB884E08; Tue, 4 Oct 2022 16:35:45 +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-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) (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 B311184D3D for ; Tue, 4 Oct 2022 16:35:41 +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-pf1-x42e.google.com with SMTP id i6so13319977pfb.2 for ; Tue, 04 Oct 2022 07:35:41 -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; bh=fzUmK719xPG68TqfZ75SsQJTlX/yTGki8xwdjaqZRFY=; b=MrAfDIem8oeHTtPPx6sk/lIGhcwbqk0lGgpnRH6nq6A5kogixqRcNsGuaPY7SjsbIb cItUZEHAWUhOa/ufQR+Sw49CYPhvVltfX07cz/Kh5fAiQN+tb2nizroN1y7KnebfMlDD /SuWHKg1xtvlk2eP91AyAFAj6lDITLGSe3JG/waV9mNgG/TMFdf5y4tgJAdqPvIf+k3j YJW/Hu+GI9NjEfoANqKAt+wpDmf0ys6GKKQNrwa1Nm5IZh3o46mAjTRMBCaldhxhai2n XuSI7qDOeH4LtsJGgCnt9xvfpfc1iHmZ4PIa6DONvwAhmyDq0UhMaV2LcB7uDjgEcb5A lZSA== 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; bh=fzUmK719xPG68TqfZ75SsQJTlX/yTGki8xwdjaqZRFY=; b=6VyeJ06ZNl3xIdp0rgQ9ocQ7fcteJXYGfM1joLUkbb5s3n38hgOuidefUlVfrZhxab VfsmOTNH7smEb51i41uNQpmDFSWn+A0cwa/o0umGc2FzahpqaOpNdHGhI4KVIHrlvMlN wYJzTSeNDHfcMID9QsS4xddDUvqe0OeyBtiPvE8MNJLRLUk/mEifG2Nk6GfYou87hsU+ DLWexUBIBd3zTx34laMB8omDMgX22UfE4+go06Q2NFzAr+C4WTRto7FKUol7CEE8gJJJ 3vnKWy5ASjhdJ7R44HSoNEm8QkNFtJJKCiIKF3a38q8PZUQ/c4wdFhDCHrzqHk3n5cfL By7A== X-Gm-Message-State: ACrzQf1u1tgSQXKNSCe+cHa4qtadcJw3MFH05QIuudQQ8xYi5Z8MM5+w w8Grjpcc3NF9HUr2TV7rKV/OGaQviRTjBQ== X-Received: by 2002:a05:6a00:1141:b0:561:e46e:ffa8 with SMTP id b1-20020a056a00114100b00561e46effa8mr1677094pfm.41.1664894138901; Tue, 04 Oct 2022 07:35:38 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id u6-20020a170902e80600b001783a917b9asm9044119plg.127.2022.10.04.07.35.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 07:35:38 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Takahiro Akashi , Masahisa Kojima Subject: [PATCH v2 5/6] test/eficonfig: support secure boot key maintenance menu Date: Tue, 4 Oct 2022 23:35:41 +0900 Message-Id: <20221004143543.30000-6-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221004143543.30000-1-masahisa.kojima@linaro.org> References: <20221004143543.30000-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 --- 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)