]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
image.bbclass: Drop support for ImageQAFailed exceptions in image_qa
authorPeter Kjellerstedt <pkj@axis.com>
Thu, 26 Sep 2024 12:25:06 +0000 (14:25 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Sep 2024 16:07:14 +0000 (17:07 +0100)
commit0c3e111c965af2bc56533633c376b70b7fa5e1de
treeff5d856c7534530dcd3019c215de4a94e6046d58
parent51356c6d6774894926c9a291b9313324cfd6b127
image.bbclass: Drop support for ImageQAFailed exceptions in image_qa

After commit 905e224849fbbed1719e0add231b00e2d570b3b4 (image_qa: fix
error handling), any unexpected exceptions in do_image_qa() would result
in a variable being set, but never used, effectively hiding the error.

Since image_qa now calls oe.qa.exit_if_errors(), remove the support for
oe.utils.ImageQAFailed and instead rely on the called functions to call
oe.qa.handle_error() themselves. This matches what do_package_qa() does.

Also update the description of do_image_qa() to explain that the called
functions are expected to call oe.qa.handle_error() themselves.

[ YOCTO #15601 ]

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/image.bbclass
meta/lib/oe/utils.py