]> code.ossystems Code Review - openembedded-core.git/commit
selftest: Optimize get_bb_var use
authorMariano Lopez <mariano.lopez@linux.intel.com>
Tue, 21 Feb 2017 14:33:08 +0000 (14:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Mar 2017 12:54:24 +0000 (12:54 +0000)
commite53f86ba8aeb6d2e9eb259329001d27d62401072
treef5a8a59120e5ba4b94a8968da865240680d782b0
parent37fd073526811dee6edcfbb78a1864dd37991f4d
selftest: Optimize get_bb_var use

get_bb_var calls bitbake every time it is used and every call
would take about 7 seconds. There are tests that calls get_bb_var
several times when they can use get_bb_vars. Also there are tests
that calls it to fetch the same variable over and over again.

This will optimize the use of get_bb_var and get_bb_vars for a
little speed up in the tests.

[YOCTO #11037]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
17 files changed:
meta/lib/oeqa/selftest/archiver.py
meta/lib/oeqa/selftest/bbtests.py
meta/lib/oeqa/selftest/buildhistory.py
meta/lib/oeqa/selftest/buildoptions.py
meta/lib/oeqa/selftest/devtool.py
meta/lib/oeqa/selftest/eSDK.py
meta/lib/oeqa/selftest/liboe.py
meta/lib/oeqa/selftest/manifest.py
meta/lib/oeqa/selftest/pkgdata.py
meta/lib/oeqa/selftest/prservice.py
meta/lib/oeqa/selftest/recipetool.py
meta/lib/oeqa/selftest/runtime-test.py
meta/lib/oeqa/selftest/signing.py
meta/lib/oeqa/selftest/sstate.py
meta/lib/oeqa/selftest/sstatetests.py
meta/lib/oeqa/selftest/tinfoil.py
meta/lib/oeqa/selftest/wic.py