summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/tinfoil.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py
index 8c9b6b8ca5..ae69038952 100644
--- a/bitbake/lib/bb/tinfoil.py
+++ b/bitbake/lib/bb/tinfoil.py
@@ -465,7 +465,16 @@ class Tinfoil:
465 commandline = [command] 465 commandline = [command]
466 if params: 466 if params:
467 commandline.extend(params) 467 commandline.extend(params)
468 result = self.server_connection.connection.runCommand(commandline) 468 try:
469 result = self.server_connection.connection.runCommand(commandline)
470 finally:
471 while True:
472 event = self.wait_event()
473 if not event:
474 break
475 if isinstance(event, logging.LogRecord):
476 if event.taskpid == 0 or event.levelno > logging.INFO:
477 self.logger.handle(event)
469 if result[1]: 478 if result[1]:
470 raise TinfoilCommandFailed(result[1]) 479 raise TinfoilCommandFailed(result[1])
471 return result[0] 480 return result[0]