[PATHv11 15/43] test_efi_loader.py: use $filesize var

Maxim Uvarov maxim.uvarov at linaro.org
Mon Nov 27 13:56:58 CET 2023


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 <maxim.uvarov at linaro.org>
---
 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)
-- 
2.30.2



More information about the U-Boot mailing list