mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
oeqa: Streamline oe-selftest startup time
"bitbake -e" executions from get_bb_var calls are slow and slow down oe-selftest startup. Rationalise the code to avoid them and minimise the number of "parsing" locations we use by caching key variables and passing them around more. This was particularly problematic with oe-selftest -j usage since it would have multiple bitbake -e executions per process making parallel usage particularly slow. (From OE-Core rev: 3689cadeb07d76e66f97d890e844f899f69666fe) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -285,8 +285,10 @@ def get_bb_vars(variables=None, target=None, postconfig=None):
|
||||
def get_bb_var(var, target=None, postconfig=None):
|
||||
return get_bb_vars([var], target, postconfig)[var]
|
||||
|
||||
def get_test_layer():
|
||||
layers = get_bb_var("BBLAYERS").split()
|
||||
def get_test_layer(bblayers=None):
|
||||
if bblayers is None:
|
||||
bblayers = get_bb_var("BBLAYERS")
|
||||
layers = bblayers.split()
|
||||
testlayer = None
|
||||
for l in layers:
|
||||
if '~' in l:
|
||||
|
||||
Reference in New Issue
Block a user