Skip to contentSkip to conversation

tinfoil: Ensure CommandExit is handled

PATCH New Richard Purdie 1 participant 1 message Dec 29, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tinfoil: Ensure CommandExit is handled

By inspection, tinfoil handles two of the three command exit cases but one is missing. Add the CommandExit case in case this is the cause of one of our recipetool/devtool hangs. Regardless, the fix is necessary.

---
 lib/bb/tinfoil.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/tinfoil.py +1 -1
index e68a3b879a..8978bb5261 100644
@@ -773,7 +773,7 @@ class Tinfoil:
                             if isinstance(event, bb.command.CommandCompleted):
                                 result = True
                                 break
-                            if isinstance(event, bb.command.CommandFailed):
+                            if isinstance(event, (bb.command.CommandFailed, bb.command.CommandExit)):
                                 self.logger.error(str(event))
                                 result = False
                                 break
Signature · 1 line
2.37.2