Bug 9949

Summary: oe-selftest needs to verify bberror etc
Product: [QA/Testing] Runtime Testing Reporter: Ross Burton <ross.burton>
Component: generalAssignee: Apoorv <apoorv.sangal>
Status: RESOLVED FIXED QA Contact: Apoorv <apoorv.sangal>
Severity: enhancement    
Priority: Medium CC: sangeeta.jain, sgw
Version: 2.1   
Target Milestone: 4.99   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2016-07-15 10:34:51 UTC
Shell functions in bitbake get given functions and FIFOs so they can emit logs to the user (bberror, bbwarn, etc).

Since the Py3 migration these have been broken and nobody noticed until image generation failed without any messages.

We need a simple recipe to call bberror/bbwarn etc and verify that they are working as expected by grepping the cooker log after invoking bitbake.

github:rossburton/meta-ross/classes/crasher.bbclass is my local test class for experimenting with this. Note that it does a bbwarn after bbfatal so I can verify that bbfatal has in fact aborted.
Comment 1 Benjamin Esquivel 2016-07-15 17:22:38 UTC
assigning to José so he finds the right owner in QA.
Comment 2 Jose Perez C 2017-06-30 19:24:12 UTC
Patch on the list 

https://patchwork.openembedded.org/patch/141441/
Comment 3 Jose Perez C 2017-08-30 15:47:37 UTC
Moved to 2.5 due resources constraint
Comment 4 Jose Perez C 2017-08-30 15:48:26 UTC
Moved to 2.5 due resources constraint
Comment 5 Sangeeta Jain 2019-10-04 07:39:15 UTC
test bbtests.py is merged in selftests