]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test/py: Read from the correct offset when initializing capsules
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 7 Aug 2025 08:08:15 +0000 (11:08 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 18 Aug 2025 22:42:04 +0000 (16:42 -0600)
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 <ilias.apalodimas@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
test/py/tests/test_efi_capsule/capsule_common.py

index 8c66411929e80df329b19215f0117094f88ee536..8aaddfc19d6b739b054b6979abdab0de73e4faad 100644 (file)
@@ -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)