[PATCH 1/6] binman: Reset missing bintools after testing

Simon Glass sjg at chromium.org
Sat Oct 14 22:40:25 CEST 2023


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 at chromium.org>
---

 tools/binman/control.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/binman/control.py b/tools/binman/control.py
index c6d3205b8c25..2f00279232b8 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:
-- 
2.42.0.655.g421f12c284-goog



More information about the U-Boot mailing list