]> git.baikalelectronics.ru Git - uboot.git/commit
test: fix launch_efi()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 20 Apr 2023 17:49:47 +0000 (19:49 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 21 Apr 2023 06:50:35 +0000 (08:50 +0200)
commit3623611571af127f28f732a222e5156fbd16c98e
tree38bcaf1c01f697e5980f86974028939638ff35e7
parent4eadba960703e7042f822f3f9ddd8faf96a11bef
test: fix launch_efi()

We cannot use old_dtb in the finally block if it has not been assigned
before the try block.

test/py/tests/test_efi_fit.py:458:30:
E0601: Using variable 'old_dtb' before assignment (used-before-assignment)

Fixes: 863fe4c971a0 ("test/py: Create a test for launching UEFI binaries from FIT images")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
test/py/tests/test_efi_fit.py