poky/bitbake/lib
Richard Purdie a1fa9d1154 bitbake: build: Handle SystemExit in python tasks correctly
If a python task fails with sys.exit(), we currently see no TaskFailed event.
The high level code does detect the exit code and fail the task but it can
leave the UI inconsistent with log output.

Fix this be intercepting SystemExit explicitly. This makes python
task failures consistent with shell task failures.

(Bitbake rev: fdc2d3df35ad1282c4ad85d76519e395b023a563)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9eee9fd4f2f96789ad2b037e74d561bdc1426856)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-10-02 09:55:47 +01:00
..
bb bitbake: build: Handle SystemExit in python tasks correctly 2021-10-02 09:55:47 +01:00
bblayers bitbake: bblayers/query: Update to handle REQUIRED_VERSION 2021-03-15 14:36:52 +00:00
bs4 bitbake: lib/bs4/testing.py: fix bs4 testing 2020-05-05 13:22:29 +01:00
hashserv bitbake: hashserv: Add get-outhash message 2021-02-10 23:48:16 +00:00
layerindexlib bitbake: logging: Make bitbake logger compatible with python logger 2021-02-10 23:48:16 +00:00
ply bitbake: lib: fix most undefined code picked up by pylint 2020-08-25 18:14:53 +01:00
progressbar bitbake: bitbake: Add initial pass of SPDX license headers to source code 2019-05-04 10:44:04 +01:00
prserv bitbake: lib: amend code to use proper singleton comparisons where possible 2020-01-19 13:31:05 +00:00
simplediff bitbake: lib/bb/siggen: show word-diff for single-line values containing spaces 2017-04-10 23:00:32 +01:00
toaster bitbake: toaster: Update documentation links to new URLs 2020-10-19 23:43:30 +01:00
codegen.py bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
pyinotify.py bitbake: lib: amend code to use proper singleton comparisons where possible 2020-01-19 13:31:05 +00:00