test/py: Correctly restore the DT after capsule tests
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 7 Aug 2025 08:08:14 +0000 (11:08 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 18 Aug 2025 22:42:04 +0000 (16:42 -0600)
commitb0465eb88f0406ba286df9ee056b9a62c8ab9c80
tree1ce08cc74803da260f33ac60013b0374f8df5a85
parentbb21c0b8d8da652d9df30d445a6b14bcb2c179ae
test/py: Correctly restore the DT after capsule tests

Some capsule tests are changing the sandbox DT to test various features,
e.g authenticated capsule updates, versioning support etc. However, no one
restores the original DT and the CI pops errors looking like

/u-boot
Bloblist at 100 not found (err=-2)
Failed to find FDT file '/tmp/sandbox/persistent-data/scratch/EFI/CapsuleTestData/test_ver.dtb'
initcall_run_f(): initcall fdtdec_setup() failed

if sandbox is restarted.

So let's restore the proper DT after done with the capsule testing.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
test/py/tests/test_efi_capsule/capsule_common.py