From patchwork Mon Nov 27 12:56:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747551 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3134791wru; Mon, 27 Nov 2023 05:04:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+vB7FD2wift6zGWTGXaDye0HZqt6/IbZd8tJVeJpbl9pqThIfAS+OwTN9nKP5IpqHDZ+q X-Received: by 2002:a05:6a00:44cd:b0:6c3:6148:570f with SMTP id cv13-20020a056a0044cd00b006c36148570fmr14113038pfb.33.1701090244139; Mon, 27 Nov 2023 05:04:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090244; cv=none; d=google.com; s=arc-20160816; b=VTWNyIsN8Qt0VJd+GEpvi4bnh9Z9rBX8iylwS2+kPsvaDah97C8guLZk6UlthqMDUj lau3W4tZ1YNUZ05B71+tFmFaWVPMy7W1QJYtEQpW+ZAaiBpfCTxR6B90WL847G8C1PFw 5K+rfoZtsmU1+/tLRIEu6k6Kx3Y+7T+Kc34zqK9D0IZxbNMzqW/cHLA6/cc20qa9Uibn iKr2cUR1fgwYqqeh9NRk7QJM9rnJyQp60h3U2PajyX4YgXaTpsLMXKM9KGKR2TsNAQsJ 26Yac5F1zKcByK5p83YhDcCsFaUR7CPnll7e8fSjyQfg1ue4djZIQzJlffOY9//Il3/H qFWg== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0Lv+IzLO2cUAOkfnCTRBq4ia8OKl6IHY5T/8C3fm1Ac=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=RLZOVfYkGp9RmT2ezg5fgsOqG5PbTqsYjYLOEQ5FSqKKUKJYe8BRRwYw5LjZEp+i5m j4OazgBATvQbTXv7tzTHwdt8FHuln//tXKaqnF5bk9CIVLnRs8q4NBKqoLLcgN4ZUrfN wf2h16QOaQnvCqPVl8ckuSraDj/MRsrCGKfi7E9Y91xY04d4ji0Kg+QG6UV8fX/Ulghz 2tHf9tGEGDdgwylQkbBqwutlpDcNUZOGvUgQRZizfSh9QM8FMvpvwIOuQHE5vPGk9seW a370qNCcn+68XnmOBN34NGMF2zvwPBKySc//C3vhwpfFJtZU5ZDMUq9KqjjaqPqzzfW5 EyIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="b/bZVD4u"; 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 h11-20020a056a00170b00b006cbe53e19fdsi9880953pfc.222.2023.11.27.05.04.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:04:04 -0800 (PST) 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="b/bZVD4u"; 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 9214B87636; Mon, 27 Nov 2023 14:00:51 +0100 (CET) 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="b/bZVD4u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2393B87617; Mon, 27 Nov 2023 14:00:47 +0100 (CET) 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (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 33F3087570 for ; Mon, 27 Nov 2023 14:00:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50a6ff9881fso6358922e87.1 for ; Mon, 27 Nov 2023 05:00:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090044; x=1701694844; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0Lv+IzLO2cUAOkfnCTRBq4ia8OKl6IHY5T/8C3fm1Ac=; b=b/bZVD4ut2skVJZ800lTBrU6s+hlyrIIaWvcMOE4IPqog0WTOtPUSEbS7tBCnu/124 rkMHGDRri9HXLA6OKlk6+y6jnY2kp126XeNjaevmAwIEQ4kK5gno2qC6fsCcRUKvJFkL PZsXrFelid+ufFLSGX+tYXiPysx4yM/6doNfzSKhZbChQOT/6efMZTnqWuIptzhDGrAi 8TRnV1vvzncD60fgdrwMehhNDe/K6tet98mjBcOwKO0k5A2NzL5PkgNAA6eWDoh19cBT hlm6izTgjBWGu00W7vnRHn20truhpmeqI37ZLc4puQ5mQ0GTNPlhGfHRpKo9Foh0p/ID eOqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090044; x=1701694844; h=content-transfer-encoding:mime-version: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=0Lv+IzLO2cUAOkfnCTRBq4ia8OKl6IHY5T/8C3fm1Ac=; b=W0TcPJdd3UuCgyldNtihZ2PLlAXv5ZZk5tEcDXK9vPTM42d3gtD86AtYwbeJXEVYAM 7FIlrn8F1Yb5yCFxKGg4TGegpXM/TPlElAaBvagaK2g+XMiUtr7UXYJd8bPdkkmh3NhS cBfejiuiwxFui4KFUSZor35URNtAQrpikbB8MJISLi9e6DGJvkZpSCQYpecYeQ+86feH 5gJbA/BV20uK0cni17NOQW3jOt2A0ejMhIVp9QatR5jx7UbDz7yriJo+GH9DD6fWyCia jlS9//+w7NFVimDq8kNOonBgXFpAZfsq6Yx56K+N0P5SortZdvkz5kBjpRmT9eY6JtG7 iqdw== X-Gm-Message-State: AOJu0Yzda7sG/5M7MseN7CFMHkQa2rR0Ku5EXgNb65V0h+BKY3qYvmvF tWPM5XIGpT4ZLwEpWNQyq8K5gLPBnMRZlsLblYNKrw== X-Received: by 2002:a05:6512:4022:b0:509:4ae3:465b with SMTP id br34-20020a056512402200b005094ae3465bmr10439246lfb.8.1701090043836; Mon, 27 Nov 2023 05:00:43 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:42 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 15/43] test_efi_loader.py: use $filesize var Date: Mon, 27 Nov 2023 18:56:58 +0600 Message-Id: <20231127125726.3735-16-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> 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 bootefi code relays in internal variable then to filesize environment. lwip tftp do not update this variable. For not I update test to provide correct size. Signed-off-by: Maxim Uvarov --- test/py/tests/test_efi_loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/py/tests/test_efi_loader.py b/test/py/tests/test_efi_loader.py index 85473a9049..9b2541593c 100644 --- a/test/py/tests/test_efi_loader.py +++ b/test/py/tests/test_efi_loader.py @@ -158,7 +158,7 @@ def test_efi_helloworld_net(u_boot_console): addr = fetch_tftp_file(u_boot_console, 'env__efi_loader_helloworld_file') - output = u_boot_console.run_command('bootefi %x' % addr) + output = u_boot_console.run_command('bootefi $fileaddr:$filesize') expected_text = 'Hello, world' assert expected_text in output expected_text = '## Application failed' @@ -187,7 +187,7 @@ def test_efi_grub_net(u_boot_console): addr = fetch_tftp_file(u_boot_console, 'env__efi_loader_grub_file') - u_boot_console.run_command('bootefi %x' % addr, wait_for_prompt=False) + u_boot_console.run_command('bootefi %x:$filesize' % addr, wait_for_prompt=False) # Verify that we have an SMBIOS table check_smbios = u_boot_console.config.env.get('env__efi_loader_check_smbios', False)