mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-19 16:31:27 +01:00
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 <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
5096f81bda
commit
fa2a2e20d0
@ -103,6 +103,7 @@ def efi_capsule_data(request, ubman):
|
|||||||
pytest.skip('Setup failed: %s' % exception.cmd)
|
pytest.skip('Setup failed: %s' % exception.cmd)
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
ubman.restart_uboot()
|
||||||
yield image_path
|
yield image_path
|
||||||
finally:
|
finally:
|
||||||
call('rm -rf %s' % mnt_point, shell=True)
|
call('rm -rf %s' % mnt_point, shell=True)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user