]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa/selftest/oescripts: Avoid variable access at module load
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Sep 2023 16:50:32 +0000 (17:50 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Sep 2023 06:43:51 +0000 (07:43 +0100)
commit64786106746fbcc9d8a35eb6cfa82fd5c6bce7f8
tree92b7d1e24c7157690e46c6905d1c7f5c0397e961
parent3689cadeb07d76e66f97d890e844f899f69666fe
oeqa/selftest/oescripts: Avoid variable access at module load

Using get_bb_var in the class setup leads to slow startup of oe-selftest.
Move the calls into setupClass instead to remove the overhead at the expense
of some code duplication.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/oescripts.py