diff options
author | Dave Lerner <dave.lerner@windriver.com> | 2014-06-25 15:40:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-14 14:10:02 +0100 |
commit | 6b62a0fd6eb9a609f71857f5793b0696f7a790b4 (patch) | |
tree | 8e0842a49d49506ffa28240498718880c39d30c8 /bitbake | |
parent | c35b678053a3fea3a928bdb11a28d1e3cee329e2 (diff) | |
download | poky-6b62a0fd6eb9a609f71857f5793b0696f7a790b4.tar.gz |
bitbake: toasterui: Show in the log that ToasterUi is ready to receive events.
Issue: TA53702
It was observed that a sequence in a script such as
bitbake --server-only ..
bitbake --observe-only ..
bitbake <some target>
could generate events from the server to the observer before
the observer was ready to read the events, and the early events
of builds were consistently dropped. Adding a "ready" note in the
log allows the script to scan for that message before proceeding
to building a target.
(Bitbake rev: 9949948f92bbe2717a05a380d3df63a332d39c9a)
Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/toasterui.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py index b1c80cc822..5f87a9d963 100644 --- a/bitbake/lib/bb/ui/toasterui.py +++ b/bitbake/lib/bb/ui/toasterui.py | |||
@@ -91,6 +91,7 @@ def main(server, eventHandler, params ): | |||
91 | errors = 0 | 91 | errors = 0 |
92 | warnings = 0 | 92 | warnings = 0 |
93 | taskfailures = [] | 93 | taskfailures = [] |
94 | first = True | ||
94 | 95 | ||
95 | buildinfohelper = BuildInfoHelper(server, build_history_enabled) | 96 | buildinfohelper = BuildInfoHelper(server, build_history_enabled) |
96 | 97 | ||
@@ -98,6 +99,9 @@ def main(server, eventHandler, params ): | |||
98 | while True: | 99 | while True: |
99 | try: | 100 | try: |
100 | event = eventHandler.waitEvent(0.25) | 101 | event = eventHandler.waitEvent(0.25) |
102 | if first: | ||
103 | first = False | ||
104 | logger.info("ToasterUI waiting for events") | ||
101 | 105 | ||
102 | if event is None: | 106 | if event is None: |
103 | if main.shutdown > 0: | 107 | if main.shutdown > 0: |