From: Ilias Apalodimas Date: Thu, 7 Aug 2025 08:08:15 +0000 (+0300) Subject: test/py: Read from the correct offset when initializing capsules X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5096f81bda1cfac2a8a325e850442bf463be2f00;p=thirdparty%2Fu-boot.git test/py: Read from the correct offset when initializing capsules The current code writes values to a flash offset defined by a function argument. However, when reading it back we always read from a static offset. Adjust the reads to use the correct offset. Signed-off-by: Ilias Apalodimas Reviewed-by: Tom Rini --- diff --git a/test/py/tests/test_efi_capsule/capsule_common.py b/test/py/tests/test_efi_capsule/capsule_common.py index 8c66411929e..8aaddfc19d6 100644 --- a/test/py/tests/test_efi_capsule/capsule_common.py +++ b/test/py/tests/test_efi_capsule/capsule_common.py @@ -42,7 +42,7 @@ def init_content(ubman, target, filename, expected): 'sf probe 0:0', f'fatload host 0:1 4000000 {CAPSULE_DATA_DIR}/{filename}', f'sf write 4000000 {target} 10', - 'sf read 5000000 100000 10', + f'sf read 5000000 {target} 10', 'md.b 5000000 10']) assert expected in ''.join(output)