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 <ilias.apalodimas@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Ilias Apalodimas
2025-08-07 11:08:15 +03:00
committed by Tom Rini
parent b0465eb88f
commit 5096f81bda

View 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)