]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
image_qa: fix error handling
authorLouis Rannou <louis.rannou@non.se.com>
Fri, 13 Sep 2024 12:25:52 +0000 (14:25 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Sep 2024 11:15:57 +0000 (12:15 +0100)
commit905e224849fbbed1719e0add231b00e2d570b3b4
tree6103b964dfc5ed55122c564a0ed578162c116175
parent992ba784c168710328749fd61a0e2869df519dea
image_qa: fix error handling

Make ImageQAFailed inherit BBHandledException so exceptions raised in tests are
catched when the actual test function is executed by bb.utils.better_exec.

Change the do_image_qa tasks so errors are handled with oe.qa.handle_error. Add
some comment to explain this requires to list the test in ERROR_QA or WARN_QA.

[YOCTO #14807]
https://bugzilla.yoctoproject.org/show_bug.cgi?id=14807

Signed-off-by: Louis Rannou <louis.rannou@non.se.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/image.bbclass
meta/lib/oe/utils.py