From: Simon Glass <sjg@chromium.org>
Date: Sat, 14 Oct 2023 20:40:25 +0000 (-0600)
Subject: binman: Reset missing bintools after testing
X-Git-Tag: v2025.01-rc5-pxa1908~787^2~11
X-Git-Url: http://git.dujemihanovic.xyz/img/static//%22brlog.php?a=commitdiff_plain;h=823f5c3a02276067c583b2f31144095f2b3b41fc;p=u-boot.git

binman: Reset missing bintools after testing

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>
---

diff --git a/tools/binman/control.py b/tools/binman/control.py
index c6d3205b8c..2f00279232 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -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: