summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-27 06:44:01 -1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-28 13:30:50 +0100
commit8b09f50d1abc1937aa5a8b8c8e147a6ebcd11dae (patch)
treeb591a80b9240d96fdf045b454a2b42be71dd9e8d /bitbake
parent7616c4935578a0699149da8a482ad81bd98bdd08 (diff)
downloadpoky-8b09f50d1abc1937aa5a8b8c8e147a6ebcd11dae.tar.gz
bitbake: tinfoil: Allow run_command not to wait on events
There are some commands where we want to see the events returned so allow the caller to request this. This also allows us to fix an infamous bug in the tinfoil testsuite in OE-Core. (Bitbake rev: 41bf1fa85a540232dcf92fe473c3b3c4cd7259dd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 0e8421c41d97d5d50a553d70c8f775d521f1a199) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/tinfoil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py
index ae69038952..28f1e5623f 100644
--- a/bitbake/lib/bb/tinfoil.py
+++ b/bitbake/lib/bb/tinfoil.py
@@ -448,7 +448,7 @@ class Tinfoil:
448 self.run_actions(config_params) 448 self.run_actions(config_params)
449 self.recipes_parsed = True 449 self.recipes_parsed = True
450 450
451 def run_command(self, command, *params): 451 def run_command(self, command, *params, handle_events=True):
452 """ 452 """
453 Run a command on the server (as implemented in bb.command). 453 Run a command on the server (as implemented in bb.command).
454 Note that there are two types of command - synchronous and 454 Note that there are two types of command - synchronous and
@@ -468,7 +468,7 @@ class Tinfoil:
468 try: 468 try:
469 result = self.server_connection.connection.runCommand(commandline) 469 result = self.server_connection.connection.runCommand(commandline)
470 finally: 470 finally:
471 while True: 471 while handle_events:
472 event = self.wait_event() 472 event = self.wait_event()
473 if not event: 473 if not event:
474 break 474 break