[PATCH 1/1] test: fix launch_efi()

Simon Glass sjg at chromium.org
Mon Apr 24 03:50:10 CEST 2023


On Fri, 21 Apr 2023 at 05:57, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> 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: 8391f955494e ("test/py: Create a test for launching UEFI binaries from FIT images")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  test/py/tests/test_efi_fit.py | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list