forked from OERV-BSP/u-boot
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:
committed by
Tom Rini
parent
b0465eb88f
commit
5096f81bda
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user