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/bbtests.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/bbtests.py')
-rw-r--r-- | meta/lib/oeqa/selftest/bbtests.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py index fccb395b2a..7675563b45 100644 --- a/meta/lib/oeqa/selftest/bbtests.py +++ b/meta/lib/oeqa/selftest/bbtests.py | |||
@@ -37,7 +37,6 @@ class BitbakeTests(oeSelfTest): | |||
37 | 37 | ||
38 | @testcase(103) | 38 | @testcase(103) |
39 | def test_local_sstate(self): | 39 | def test_local_sstate(self): |
40 | bitbake('m4-native -ccleansstate') | ||
41 | bitbake('m4-native') | 40 | bitbake('m4-native') |
42 | bitbake('m4-native -cclean') | 41 | bitbake('m4-native -cclean') |
43 | result = bitbake('m4-native') | 42 | result = bitbake('m4-native') |
@@ -83,8 +82,8 @@ class BitbakeTests(oeSelfTest): | |||
83 | pkgsplit_dir = get_bb_var('PKGDEST', test_recipe) | 82 | pkgsplit_dir = get_bb_var('PKGDEST', test_recipe) |
84 | man_dir = get_bb_var('mandir', test_recipe) | 83 | man_dir = get_bb_var('mandir', test_recipe) |
85 | 84 | ||
86 | bitbake('-c cleansstate %s' % test_recipe) | 85 | bitbake('-c clean %s' % test_recipe) |
87 | bitbake(test_recipe) | 86 | bitbake('-c package -f %s' % test_recipe) |
88 | self.add_command_to_tearDown('bitbake -c clean %s' % test_recipe) | 87 | self.add_command_to_tearDown('bitbake -c clean %s' % test_recipe) |
89 | 88 | ||
90 | man_file = os.path.join(image_dir + man_dir, 'man3/zlib.3') | 89 | man_file = os.path.join(image_dir + man_dir, 'man3/zlib.3') |
@@ -103,7 +102,6 @@ class BitbakeTests(oeSelfTest): | |||
103 | # test 2 from bug 5875 | 102 | # test 2 from bug 5875 |
104 | test_recipe = 'zlib' | 103 | test_recipe = 'zlib' |
105 | 104 | ||
106 | bitbake('-c cleansstate %s' % test_recipe) | ||
107 | bitbake(test_recipe) | 105 | bitbake(test_recipe) |
108 | self.add_command_to_tearDown('bitbake -c clean %s' % test_recipe) | 106 | self.add_command_to_tearDown('bitbake -c clean %s' % test_recipe) |
109 | 107 | ||