summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <[email protected]>2025-08-07 11:08:15 +0300
committerTom Rini <[email protected]>2025-08-18 16:42:04 -0600
commit5096f81bda1cfac2a8a325e850442bf463be2f00 (patch)
treef2d92771cdd666ea91a11bbef05693573c247b98
parentb0465eb88f0406ba286df9ee056b9a62c8ab9c80 (diff)
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 <[email protected]> Reviewed-by: Tom Rini <[email protected]>
-rw-r--r--test/py/tests/test_efi_capsule/capsule_common.py2
1 files changed, 1 insertions, 1 deletions
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)