Skip to contentSkip to conversation

selftest/bblayers: don't fetch a variable that is never used

PATCH New Ross Burton 1 participant 2 messages Jan 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 selftest/bblayers: don't fetch a variable that is never used

---
 meta/lib/oeqa/selftest/bblayers.py | 1 -
 1 file changed, 1 deletion(-)
meta/lib/oeqa/selftest/bblayers.py +0 -1
index 677161f..cd658c5 100644
@@ -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
#1 lore raw

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.

---
 meta/lib/oeqa/selftest/base.py | 1 -
 1 file changed, 1 deletion(-)
meta/lib/oeqa/selftest/base.py +0 -1
index b477db3..26c93f9 100644
@@ -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