diff options
author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2017-02-21 14:33:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 23:27:08 +0000 |
commit | 9365e5f7a986fc1991f53a675e2186f8459d8a79 (patch) | |
tree | 57ddf6821d0963fc6e1da3b047cafefc6cd1f66b /meta/lib/oeqa/selftest/sstatetests.py | |
parent | 093f673b2a0afe968101c431914b91940b8abf70 (diff) | |
download | poky-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/sstatetests.py')
-rw-r--r-- | meta/lib/oeqa/selftest/sstatetests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/sstatetests.py b/meta/lib/oeqa/selftest/sstatetests.py index e3f819c634..783d3d07b9 100644 --- a/meta/lib/oeqa/selftest/sstatetests.py +++ b/meta/lib/oeqa/selftest/sstatetests.py | |||
@@ -16,7 +16,7 @@ class SStateTests(SStateBase): | |||
16 | 16 | ||
17 | # Test sstate files creation and their location | 17 | # Test sstate files creation and their location |
18 | def run_test_sstate_creation(self, targets, distro_specific=True, distro_nonspecific=True, temp_sstate_location=True, should_pass=True): | 18 | def run_test_sstate_creation(self, targets, distro_specific=True, distro_nonspecific=True, temp_sstate_location=True, should_pass=True): |
19 | self.config_sstate(temp_sstate_location) | 19 | self.config_sstate(temp_sstate_location, [self.sstate_path]) |
20 | 20 | ||
21 | if self.temp_sstate_location: | 21 | if self.temp_sstate_location: |
22 | bitbake(['-cclean'] + targets) | 22 | bitbake(['-cclean'] + targets) |
@@ -63,7 +63,7 @@ class SStateTests(SStateBase): | |||
63 | 63 | ||
64 | # Test the sstate files deletion part of the do_cleansstate task | 64 | # Test the sstate files deletion part of the do_cleansstate task |
65 | def run_test_cleansstate_task(self, targets, distro_specific=True, distro_nonspecific=True, temp_sstate_location=True): | 65 | def run_test_cleansstate_task(self, targets, distro_specific=True, distro_nonspecific=True, temp_sstate_location=True): |
66 | self.config_sstate(temp_sstate_location) | 66 | self.config_sstate(temp_sstate_location, [self.sstate_path]) |
67 | 67 | ||
68 | bitbake(['-ccleansstate'] + targets) | 68 | bitbake(['-ccleansstate'] + targets) |
69 | 69 | ||
@@ -105,7 +105,7 @@ class SStateTests(SStateBase): | |||
105 | 105 | ||
106 | # Test rebuilding of distro-specific sstate files | 106 | # Test rebuilding of distro-specific sstate files |
107 | def run_test_rebuild_distro_specific_sstate(self, targets, temp_sstate_location=True): | 107 | def run_test_rebuild_distro_specific_sstate(self, targets, temp_sstate_location=True): |
108 | self.config_sstate(temp_sstate_location) | 108 | self.config_sstate(temp_sstate_location, [self.sstate_path]) |
109 | 109 | ||
110 | bitbake(['-ccleansstate'] + targets) | 110 | bitbake(['-ccleansstate'] + targets) |
111 | 111 | ||