selftest/bblayers: don't fetch a variable that is never used
PATCH 1/2 selftest/bblayers: don't fetch a variable that is never used
Signed-off-by Ross Burton <[email protected]>
--- meta/lib/oeqa/selftest/bblayers.py | 1 - 1 file changed, 1 deletion(-)
meta/lib/oeqa/selftest/bblayers.py +0 -1
@@ -68,7 +68,6 @@ class BitbakeLayers(oeSelfTest): @testcase(1384) def test_bitbakelayers_showrecipes(self): - distro = get_bb_var('DISTRO') result = runCmd('bitbake-layers show-recipes') self.assertIn('aspell:', result.output) self.assertIn('mtd-utils:', result.output)
Signature · 1 line
2.8.1
PATCH 2/2 selftest/base: don't fetch DISTRO variable in constructor
Fetching the DISTRO variable in the base constructor means that we have to start bitbake for every test case instance, which adds minutes to the startup time.
Signed-off-by Ross Burton <[email protected]>
--- meta/lib/oeqa/selftest/base.py | 1 - 1 file changed, 1 deletion(-)
meta/lib/oeqa/selftest/base.py +0 -1
@@ -41,7 +41,6 @@ class oeSelfTest(unittest.TestCase): self.testinc_path, self.testinc_bblayers_path, self.machineinc_path, self.localconf_backup, self.local_bblayers_backup] - self.distro = get_bb_var('DISTRO') super(oeSelfTest, self).__init__(methodName) def setUp(self):
Signature · 1 line
2.8.1