summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-24 17:30:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-26 09:27:43 +0000
commita10ac380b781073fc995a3ee245d570f7b49055d (patch)
tree429b421e06ba8d47a62064139b94119f8a35e768 /bitbake
parentcd369a732e17e57794a89519de6bab3847330630 (diff)
downloadpoky-a10ac380b781073fc995a3ee245d570f7b49055d.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: 0e8421c41d97d5d50a553d70c8f775d521f1a199) 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 02c0bab600..e68a3b879a 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