]> code.ossystems Code Review - openembedded-core.git/commitdiff
selftest/base: don't fetch DISTRO variable in constructor
authorRoss Burton <ross.burton@intel.com>
Thu, 12 Jan 2017 12:33:59 +0000 (12:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Jan 2017 18:01:56 +0000 (18:01 +0000)
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 <ross.burton@intel.com>
meta/lib/oeqa/selftest/base.py

index b477db31fbc0e2c53e679fe7689290769e61dfa5..26c93f905a5ff799e553c531c9545fd2ee7bb0f1 100644 (file)
@@ -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):