]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa: Streamline oe-selftest startup time
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Sep 2023 16:49:25 +0000 (17:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Sep 2023 06:43:51 +0000 (07:43 +0100)
commit3689cadeb07d76e66f97d890e844f899f69666fe
tree096cff64d601ca6546067fed8cb4102e6980b172
parentc9ea3570f5dbdaf8c61e445ae9de759a0b71e21f
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/utils/concurrencytest.py
meta/lib/oeqa/selftest/context.py
meta/lib/oeqa/utils/commands.py