diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-03-02 22:47:41 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-07 17:23:04 +0000 |
commit | 0a6130697e58cca0bea4038d984edf89ebc21668 (patch) | |
tree | d78e8d2f6a026819d099fd5332633405f35fa873 | |
parent | ac941ac0a2b249d11783efea4676e65d78cb5f43 (diff) | |
download | poky-0a6130697e58cca0bea4038d984edf89ebc21668.tar.gz |
bitbake: toasterui: check if setEventMask succeeded
Currently toasterui ignores return value of setEventMask
command, which created confusing difference between set of
events set by this command and the real set used in the code.
Checked if setEventMask succeeded. Print error message and
exit if it's not.
(Bitbake rev: 6e3f13ffb47102b5df2da91fbc3f5da3179245b2)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/ui/toasterui.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py index 4bb33f1008..fec69621f1 100644 --- a/bitbake/lib/bb/ui/toasterui.py +++ b/bitbake/lib/bb/ui/toasterui.py | |||
@@ -154,8 +154,10 @@ def main(server, eventHandler, params): | |||
154 | logger.addHandler(console) | 154 | logger.addHandler(console) |
155 | logger.setLevel(logging.INFO) | 155 | logger.setLevel(logging.INFO) |
156 | llevel, debug_domains = bb.msg.constructLogOptions() | 156 | llevel, debug_domains = bb.msg.constructLogOptions() |
157 | server.runCommand(["setEventMask", server.getEventHandle(), llevel, debug_domains, _evt_list]) | 157 | result, error = server.runCommand(["setEventMask", server.getEventHandle(), llevel, debug_domains, _evt_list]) |
158 | 158 | if not result or error: | |
159 | logger.error("can't set event mask: %s", error) | ||
160 | return 1 | ||
159 | 161 | ||
160 | # verify and warn | 162 | # verify and warn |
161 | build_history_enabled = True | 163 | build_history_enabled = True |