summaryrefslogtreecommitdiffstats
path: root/meta-selftest/classes
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2023-12-28 16:01:18 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-10 14:02:38 +0000
commit98c5c96dd3902cdc4a455a9ed46591037ab3f676 (patch)
tree4a555be1e9110218bb1a25e71cbf83d11b50ecf9 /meta-selftest/classes
parentbc22d82c2f0c16ee8ad2edeb3bcdfb31db0afa94 (diff)
downloadpoky-98c5c96dd3902cdc4a455a9ed46591037ab3f676.tar.gz
bitbake: ui/knotty: properly handle exceptions when calling runCommand()
In runCommand() the send() and recv() can fail and raise BrokenPipeError and EOFError exceptions when the bitbake-server is unexpectedly terminated. In these cases a python traceback is currently dumped. Similarly updateFromServer() which calls runCommand() can also raise these and other exceptions, and currently lacks proper exception handling resulting in python traceback. We wrap calls to runCommand() and updateFromServer() in a try/except block as well as improve the exception handling for updateToServer(). This along with the earlier commit which added text to the BrokenPipeError and EOFError exceptions in runCommand() to indicate a bitbake-server termination may have occurred, should improve the user's ability to understand and handle these errors. An easy way to trigger each of the runCommand() exceptions is to 'kill -9' bitbake-server before (causes EOFError) or after (causes BrokenPipeError) the "Loading Cache" stage. (Bitbake rev: 804d366ee3ddc0f37f0a6c712c8d42db45b119bc) Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest/classes')
0 files changed, 0 insertions, 0 deletions