diff options
| author | Ilias Apalodimas <[email protected]> | 2025-08-07 11:08:16 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-08-18 16:42:04 -0600 |
| commit | fa2a2e20d0b4d7af92ee118d66f3245055cc9ba3 (patch) | |
| tree | 1cdb21f13ac23ba085f3575fee2c5be62e693542 /test/py | |
| parent | 5096f81bda1cfac2a8a325e850442bf463be2f00 (diff) | |
test/py: Fix race conditions on EFI capsule tests
efi_capsule_data() is called in each of the EFI tests to create and
setup the files we need. However, it also recreates the spi.bin file
that holds the SPI flash contents we rely on for the test validation.
This leads to weird errors since reading from the flash returns 0,
instead of the expected value if the file has been recreated.
Always restart our sandbox instance if the files are recreated.
Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'test/py')
| -rw-r--r-- | test/py/tests/test_efi_capsule/conftest.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/py/tests/test_efi_capsule/conftest.py b/test/py/tests/test_efi_capsule/conftest.py index 961d2e0b3c1..45c06c42fd2 100644 --- a/test/py/tests/test_efi_capsule/conftest.py +++ b/test/py/tests/test_efi_capsule/conftest.py @@ -103,6 +103,7 @@ def efi_capsule_data(request, ubman): pytest.skip('Setup failed: %s' % exception.cmd) return else: + ubman.restart_uboot() yield image_path finally: call('rm -rf %s' % mnt_point, shell=True) |
