summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/recipetool.py
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2017-02-21 14:33:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-01 23:27:08 +0000
commit9365e5f7a986fc1991f53a675e2186f8459d8a79 (patch)
tree57ddf6821d0963fc6e1da3b047cafefc6cd1f66b /meta/lib/oeqa/selftest/recipetool.py
parent093f673b2a0afe968101c431914b91940b8abf70 (diff)
downloadpoky-9365e5f7a986fc1991f53a675e2186f8459d8a79.tar.gz
selftest: Avoid sstate corruption by calling cleansstate
Currently selftest doesn't use sstates because some tests clean sstate cache; using sstates would give a performance boost instead of building everything from scratch. With this sstates are not corrupted using different methods depending on tests: devtool: These tests needed to delete the cache so SSTATE_DIR as SSTATE_MIRRORS and set a temporal SSTATE_DIR. sstatetests: This module already used a temporal SSTATE_DIR, so just set up the SSTATE_MIRRORS. Rest: Removed cleansstate, some of them required to force a certain task, others were just removed or changed for another task. [YOCTO #10929] (From OE-Core rev: 62c61087a10cc3b26fbff32c9e2efd1704a39724) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/recipetool.py')
-rw-r--r--meta/lib/oeqa/selftest/recipetool.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/meta/lib/oeqa/selftest/recipetool.py b/meta/lib/oeqa/selftest/recipetool.py
index bcc2b46188..e8348233ec 100644
--- a/meta/lib/oeqa/selftest/recipetool.py
+++ b/meta/lib/oeqa/selftest/recipetool.py
@@ -72,11 +72,6 @@ class RecipetoolTests(RecipetoolBase):
72 logger.info('Running bitbake to generate pkgdata') 72 logger.info('Running bitbake to generate pkgdata')
73 bitbake('-c packagedata base-files coreutils busybox selftest-recipetool-appendfile') 73 bitbake('-c packagedata base-files coreutils busybox selftest-recipetool-appendfile')
74 74
75 @classmethod
76 def tearDownClass(cls):
77 # Shouldn't leave any traces of this artificial recipe behind
78 bitbake('-c cleansstate selftest-recipetool-appendfile')
79
80 def _try_recipetool_appendfile(self, testrecipe, destfile, newfile, options, expectedlines, expectedfiles): 75 def _try_recipetool_appendfile(self, testrecipe, destfile, newfile, options, expectedlines, expectedfiles):
81 cmd = 'recipetool appendfile %s %s %s %s' % (self.templayerdir, destfile, newfile, options) 76 cmd = 'recipetool appendfile %s %s %s %s' % (self.templayerdir, destfile, newfile, options)
82 return self._try_recipetool_appendcmd(cmd, testrecipe, expectedfiles, expectedlines) 77 return self._try_recipetool_appendcmd(cmd, testrecipe, expectedfiles, expectedlines)