Bug 11037 - selftest: Optimize use of get_bb_var
Summary: selftest: Optimize use of get_bb_var
Status: RESOLVED FIXED
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 2.3 M3
Assignee: Mariano Lopez
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-02-09 15:57 UTC by Mariano Lopez
Modified: 2017-03-02 16:13 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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