From patchwork Thu Jul 4 14:37:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 809960 Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp1200306wru; Thu, 4 Jul 2024 07:38:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUpMlEqyYlNpCAeh/gYP73FX22vuOfQIQs3USHVrWBJIsjWga1WwSFVFyt6wIXoM1kcn2jEShZIijT7pbN0sbWO X-Google-Smtp-Source: AGHT+IGYaq7gWuVZCipOwyPTcncLEiycy+SoJJb9zffiP8XqAd823xQDERGUY6DHOdOhzBngs0QZ X-Received: by 2002:a05:6402:2106:b0:57c:60f0:98bc with SMTP id 4fb4d7f45d1cf-58e5965d15amr1688370a12.11.1720103882345; Thu, 04 Jul 2024 07:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720103882; cv=none; d=google.com; s=arc-20160816; b=um0Fg7jVpXB2PpjUmPulR2ugcRF1oWWdRPH3OVzZJRjJbcOtsuuOEQ00AULX8LxuU4 7cGNLLD13IziFWeHqcU9vDTDhFMedkY1QD66SXb71UtBlvV8EG+GrooThS3Mm4qZNt3M 8Vh5lccykwA3Ca6whB6CYDCdhuOQpn2nNPdG3NjkRlyq1if1onBm9Nk3yuKa/N6j05A1 sG+Uaaytnz4oCid0CSsnlabED8g/O5Q6CLaKCF9It1gFcWX/wbvCXnr+StevozlRchu6 6pEWGOtFAZFXc2q2UixNFXtp6WfgQ5M5raTI3GZzR8sOip2MY9JoZei9o22fbXpySiyB CDbA== 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:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=gIsdNMLZqgmxW5xf5L1BwYaBUD4SBJsRko2zp92IYyY=; fh=/JeJsCxW6lsweE3/hONtS51yWvA9r6mBB57kx6ISPko=; b=ahCRIP+wDzAhiSM6wnnDfdKjP4Tb2lwTLIUv7dj0uN36PJ0q28Yjti8nF+dgOeY102 XjTppRj9JCX+YNGl4HBrA2k5KRBSA4QZOgiBrc256r28kqxDQO+e5v5xaB+kOle6uOfW NpZ9bQPP1JkqpHxmNOmuR3Od2wDs3B9ZKMHXEKpnfrM3Nk2PZUOIp6/uZWFoDzVouYwl BWp+1/bWZo+djbEWQzBf2NcKZW8sN/EVgRKQ8hheCqvt8tKs6gZnbvr+woy2pZ4YD8jJ WPOWg3TOh96Md6QCiuQXPBrlRZb5OvRC/RjkBpGwzBzdH6WpWkB8Bd6ZR30bTox7/OdY hGrQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vLVZlJ5i; 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 4fb4d7f45d1cf-58d84f273ecsi1397521a12.684.2024.07.04.07.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 07:38:02 -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=vLVZlJ5i; 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 195C288669; Thu, 4 Jul 2024 16:38:01 +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="vLVZlJ5i"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 88B8D886A6; Thu, 4 Jul 2024 16:38:00 +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-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 71EB6885D7 for ; Thu, 4 Jul 2024 16:37:58 +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=ilias.apalodimas@linaro.org Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-42562a984d3so4722345e9.3 for ; Thu, 04 Jul 2024 07:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720103877; x=1720708677; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gIsdNMLZqgmxW5xf5L1BwYaBUD4SBJsRko2zp92IYyY=; b=vLVZlJ5icyb4lMtdlTZ9CRo0napMVCGz3CG99fTlleOQSDuBCEgau9u494LIxVJgfc 8FkmO25kT93FYqwXLcOeKk/yqswFqdSvpXNU8Ryshjyt7rS+BuVwr4KXLzmba+jm2C9Q g/W0avIotnU5BP613j2rNw5zp2JgZy50hCqqrz5NhUBT9cOqfCS5nFWCPNin5L/5XwGZ VItsTCo312+Fz2egCk2KhYcEurzpb0K1c4Lf0glwyueSqacCfA6Gp3nTDgZ75ZwuPthT R9UwnKkkDmPbFx+sThBFERXmMtGgHYkyEMy9sp/cJ0nOn6K/FO23TCGscw+esi20wkuE 1xMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720103877; x=1720708677; 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=gIsdNMLZqgmxW5xf5L1BwYaBUD4SBJsRko2zp92IYyY=; b=PalCmq65ZivzrwvQ0fIJqTiWe6YXJBD6GANJ3NUwCUmREoP6viCnownB5VyvcZPEh1 kdiCChpwIdhjixR9jQRy3gW/c7Nh3iI8uEXAA/YBT7JuMSjTpzHvGqzMzKrRd5KLRba2 oIJVZ1PdwFRLw8l69CmVAXRbyJq2B/G2AURhDwGkm1061QI2iCfN1Rghb+/3FU7sRyuv ncDqhydx97bZ45Tp0zEu7sM7hRp2eCTD6g7R4p+1u+WS+14uYPGFKJgeOnfXOYBEeb7I WUthk9+ckvT3fUhx+PXWmGgGjhBygyLcTBLucqiWRe9UjpbmcRhLsn3OvMSp7QowAqmM kGtg== X-Gm-Message-State: AOJu0YwP18bVi6Zmqe31kz7UyWF2jUw4a2actoABrDY1hKBaIaDfZfDj YP5RN7gsz2x7bMWDJgE9qWDfYZbqNrkVzXBUzFk50OAlBq2utx+Xjm2VwRdzKkc= X-Received: by 2002:a7b:c84e:0:b0:424:a4c1:6ee7 with SMTP id 5b1f17b1804b1-4264a3db5e2mr14953765e9.18.1720103877074; Thu, 04 Jul 2024 07:37:57 -0700 (PDT) Received: from hades.. (ppp046103011142.access.hol.gr. [46.103.11.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d0b19sm27270635e9.10.2024.07.04.07.37.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 07:37:56 -0700 (PDT) From: Ilias Apalodimas To: xypron.glpk@gmx.de Cc: u-boot@lists.denx.de, Ilias Apalodimas Subject: [PATCH] test: test for ignore OsIndications Date: Thu, 4 Jul 2024 17:37:52 +0300 Message-ID: <20240704143752.250847-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean The tests we currently have expect the firmware update to fail when OsIndications is not set properly. However, we have a Kconfig flag that explicitly ignores that variable and trigers the capsule update regardless. Adjust the tests accordingly Signed-off-by: Ilias Apalodimas --- .../py/tests/test_efi_capsule/test_capsule_firmware_raw.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/py/tests/test_efi_capsule/test_capsule_firmware_raw.py b/test/py/tests/test_efi_capsule/test_capsule_firmware_raw.py index 05853578c293..f3a2dff5c2c8 100644 --- a/test/py/tests/test_efi_capsule/test_capsule_firmware_raw.py +++ b/test/py/tests/test_efi_capsule/test_capsule_firmware_raw.py @@ -95,6 +95,9 @@ class TestEfiCapsuleFirmwareRaw: 'config_efi_ignore_osindications') need_reboot = True if ignore_os_indications else False + capsule_auth = u_boot_config.buildconfig.get( + 'config_efi_capsule_authenticate') + capsule_early = u_boot_config.buildconfig.get( 'config_efi_capsule_on_disk_early') with u_boot_console.log.section('Test Case 2-b, after reboot'): @@ -104,10 +107,10 @@ class TestEfiCapsuleFirmwareRaw: if not ignore_os_indications: check_file_exist(u_boot_console, disk_img, capsule_files) - expected = 'u-boot:New' if ignore_os_indications else 'u-boot:Old' + expected = 'u-boot:New' if (ignore_os_indications and not capsule_auth) else 'u-boot:Old' verify_content(u_boot_console, '100000', expected) - expected = 'u-boot-env:New' if ignore_os_indications else 'u-boot-env:Old' + expected = 'u-boot-env:New' if (ignore_os_indications and not capsule_auth) else 'u-boot-env:Old' verify_content(u_boot_console, '150000', expected) def test_efi_capsule_fw3(