]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Reset missing bintools after testing
authorSimon Glass <sjg@chromium.org>
Sat, 14 Oct 2023 20:40:25 +0000 (14:40 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 2 Nov 2023 15:38:54 +0000 (09:38 -0600)
For tests which fake bintools being missing, we need to reset the list
afterwards, to ensure that future tests do not also see the bintools as
missing.

Reset the list when processing is complete.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
tools/binman/control.py

index c6d3205b8c2508988ef0886431059231e7b8ea2b..2f00279232b87dea4c85428aba487d2668b6346a 100644 (file)
@@ -858,6 +858,8 @@ def Binman(args):
                 data = state.GetFdtForEtype('u-boot-dtb').GetContents()
                 elf.UpdateFile(*elf_params, data)
 
+            bintool.Bintool.set_missing_list(None)
+
             # This can only be True if -M is provided, since otherwise binman
             # would have raised an error already
             if invalid: