diff mbox series

tinfoil: Ensure CommandExit is handled

Message ID 20221229124951.868534-1-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit eadddd94835b6b6a8517dfed3d29e6dbb2d35988
Headers show
Series tinfoil: Ensure CommandExit is handled | expand

Commit Message

Richard Purdie Dec. 29, 2022, 12:49 p.m. UTC
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/tinfoil.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py
index e68a3b879a..8978bb5261 100644
--- a/lib/bb/tinfoil.py
+++ b/lib/bb/tinfoil.py
@@ -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