]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa/selftest/wic: use self.td instead of get_bb_var to save on bitbake calls
authorRoss Burton <ross@burtonini.com>
Thu, 31 Mar 2022 18:29:14 +0000 (19:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Apr 2022 22:05:32 +0000 (23:05 +0100)
commit884201c6c1bbf7c1b958bab7d7c91e27577eeaac
treec91b90f2c209fc3d0f151a7b9f61a488f72806a1
parent73d1b7163792ec089ffb3bf99f1b4f8760beaea7
oeqa/selftest/wic: use self.td instead of get_bb_var to save on bitbake calls

When a test case starts, self.td is populated with all the variables in
the data store.  Typically this can be used instead of get_bb_var(),
which saves a bitbake call per variable lookup.

The only catch is that in parallel runs the build directory is moved
after td is populated, so paths in the build directory are wrong: these
still need to be fetched in the test.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/lib/oeqa/selftest/cases/wic.py