summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tinfoil.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/tinfoil.py')
-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 2fb1bb7d27..763c329810 100644
--- a/bitbake/lib/bb/tinfoil.py
+++ b/bitbake/lib/bb/tinfoil.py
@@ -461,7 +461,16 @@ class Tinfoil:
461 commandline = [command] 461 commandline = [command]
462 if params: 462 if params:
463 commandline.extend(params) 463 commandline.extend(params)
464 result = self.server_connection.connection.runCommand(commandline) 464 try:
465 result = self.server_connection.connection.runCommand(commandline)
466 finally:
467 while True:
468 event = self.wait_event()
469 if not event:
470 break
471 if isinstance(event, logging.LogRecord):
472 if event.taskpid == 0 or event.levelno > logging.INFO:
473 self.logger.handle(event)
465 if result[1]: 474 if result[1]:
466 raise TinfoilCommandFailed(result[1]) 475 raise TinfoilCommandFailed(result[1])
467 return result[0] 476 return result[0]