Bug 11037

Summary: selftest: Optimize use of get_bb_var
Product: [QA/Testing] Build Testing Reporter: Mariano Lopez <mariano.lopez>
Component: generalAssignee: Mariano Lopez <mariano.lopez>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium+ CC: benjamin.esquivel
Version: unspecified   
Target Milestone: 2.3 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mariano Lopez 2017-02-09 15:57:03 UTC
get_bb_var uses bitbake -e to fetch variables, this consumes about 7 seconds to get a variable. It exists get_bb_vars that gets a list of variables in just one bitbake -e run, so if there are two or more get_bb_var together it would be possible to use this function instead.
Comment 1 Mariano Lopez 2017-02-09 16:31:35 UTC
Sent patch to the mailing list:

https://patchwork.openembedded.org/series/5239/
Comment 2 Mariano Lopez 2017-03-02 16:13:53 UTC
This has been solved in commit:

http://cgit.openembedded.org/openembedded-core/commit/?id=e53f86ba8aeb6d2e9eb259329001d27d62401072