]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa/utils/command: fast-path get_bb_var()
authorRoss Burton <ross.burton@arm.com>
Thu, 19 Jun 2025 13:20:42 +0000 (14:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Jun 2025 08:51:18 +0000 (09:51 +0100)
commitfafe77879aa6225aa8b5187ff590bb4998cbf987
tree61b94b8dcca7b039de7b507e94a66557767c4fe2
parent88b59db87d2c65e5be0f3fee1ebf4ee64ef05f18
oeqa/utils/command: fast-path get_bb_var()

get_bb_var() currently end up calling 'bitbake -e' and parsing the whole
output. However if postconfig isn't set then we can speed this up by
just calling bitbake-getvar.

The complication with failing bitbake-getvar calls is because we need to
be careful to return None instead of the empty string when the variable
doesn't exist.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/commands.py