diff options
author | Louis Rannou <louis.rannou@non.se.com> | 2024-09-13 14:25:52 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-09-17 12:16:01 +0100 |
commit | 48a898fdfbb85e35edd4342321d7be0393624934 (patch) | |
tree | fe5ce732fb1522e2833aaed667a780ee89c147f7 /meta/lib | |
parent | 099c09be3c37743425486664c6457bd0301c74f0 (diff) | |
download | poky-48a898fdfbb85e35edd4342321d7be0393624934.tar.gz |
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
(From OE-Core rev: 905e224849fbbed1719e0add231b00e2d570b3b4)
Signed-off-by: Louis Rannou <louis.rannou@non.se.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 14a7d07ef0..83f1440887 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py | |||
@@ -482,7 +482,7 @@ def get_multilib_datastore(variant, d): | |||
482 | localdata.setVar("MLPREFIX", "") | 482 | localdata.setVar("MLPREFIX", "") |
483 | return localdata | 483 | return localdata |
484 | 484 | ||
485 | class ImageQAFailed(Exception): | 485 | class ImageQAFailed(bb.BBHandledException): |
486 | def __init__(self, description, name=None, logfile=None): | 486 | def __init__(self, description, name=None, logfile=None): |
487 | self.description = description | 487 | self.description = description |
488 | self.name = name | 488 | self.name = name |