summaryrefslogtreecommitdiffstats
path: root/meta
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
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')
-rw-r--r--meta/lib/oeqa/selftest/bbtests.py6
-rw-r--r--meta/lib/oeqa/selftest/buildoptions.py22
-rw-r--r--meta/lib/oeqa/selftest/devtool.py18
-rw-r--r--meta/lib/oeqa/selftest/oescripts.py8
-rw-r--r--meta/lib/oeqa/selftest/prservice.py3
-rw-r--r--meta/lib/oeqa/selftest/recipetool.py5
-rw-r--r--meta/lib/oeqa/selftest/signing.py8
-rw-r--r--meta/lib/oeqa/selftest/sstatetests.py6
8 files changed, 38 insertions, 38 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
diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py
index d40eb007de..28734fd1f0 100644
--- a/meta/lib/oeqa/selftest/buildoptions.py
+++ b/meta/lib/oeqa/selftest/buildoptions.py
@@ -36,9 +36,8 @@ class ImageOptionsTests(oeSelfTest):
36 p = get_bb_var('SYSROOT_DESTDIR', 'ccache-native') + get_bb_var('bindir', 'ccache-native') + "/" + "ccache" 36 p = get_bb_var('SYSROOT_DESTDIR', 'ccache-native') + get_bb_var('bindir', 'ccache-native') + "/" + "ccache"
37 self.assertTrue(os.path.isfile(p), msg = "No ccache found (%s)" % p) 37 self.assertTrue(os.path.isfile(p), msg = "No ccache found (%s)" % p)
38 self.write_config('INHERIT += "ccache"') 38 self.write_config('INHERIT += "ccache"')
39 bitbake("m4 -c cleansstate") 39 self.add_command_to_tearDown('bitbake -c clean m4')
40 bitbake("m4 -c compile") 40 bitbake("m4 -f -c compile")
41 self.addCleanup(bitbake, 'ccache-native -ccleansstate')
42 res = runCmd("grep ccache %s" % (os.path.join(get_bb_var("WORKDIR","m4"),"temp/log.do_compile")), ignore_status=True) 41 res = runCmd("grep ccache %s" % (os.path.join(get_bb_var("WORKDIR","m4"),"temp/log.do_compile")), ignore_status=True)
43 self.assertEqual(0, res.status, msg="No match for ccache in m4 log.do_compile. For further details: %s" % os.path.join(get_bb_var("WORKDIR","m4"),"temp/log.do_compile")) 42 self.assertEqual(0, res.status, msg="No match for ccache in m4 log.do_compile. For further details: %s" % os.path.join(get_bb_var("WORKDIR","m4"),"temp/log.do_compile"))
44 43
@@ -75,14 +74,14 @@ class SanityOptionsTest(oeSelfTest):
75 74
76 @testcase(927) 75 @testcase(927)
77 def test_options_warnqa_errorqa_switch(self): 76 def test_options_warnqa_errorqa_switch(self):
78 bitbake("xcursor-transparent-theme -ccleansstate")
79 77
80 self.write_config("INHERIT_remove = \"report-error\"") 78 self.write_config("INHERIT_remove = \"report-error\"")
81 if "packages-list" not in get_bb_var("ERROR_QA"): 79 if "packages-list" not in get_bb_var("ERROR_QA"):
82 self.append_config("ERROR_QA_append = \" packages-list\"") 80 self.append_config("ERROR_QA_append = \" packages-list\"")
83 81
84 self.write_recipeinc('xcursor-transparent-theme', 'PACKAGES += \"${PN}-dbg\"') 82 self.write_recipeinc('xcursor-transparent-theme', 'PACKAGES += \"${PN}-dbg\"')
85 res = bitbake("xcursor-transparent-theme", ignore_status=True) 83 self.add_command_to_tearDown('bitbake -c clean xcursor-transparent-theme')
84 res = bitbake("xcursor-transparent-theme -f -c package", ignore_status=True)
86 self.delete_recipeinc('xcursor-transparent-theme') 85 self.delete_recipeinc('xcursor-transparent-theme')
87 line = self.getline(res, "QA Issue: xcursor-transparent-theme-dbg is listed in PACKAGES multiple times, this leads to packaging errors.") 86 line = self.getline(res, "QA Issue: xcursor-transparent-theme-dbg is listed in PACKAGES multiple times, this leads to packaging errors.")
88 self.assertTrue(line and line.startswith("ERROR:"), msg=res.output) 87 self.assertTrue(line and line.startswith("ERROR:"), msg=res.output)
@@ -90,8 +89,7 @@ class SanityOptionsTest(oeSelfTest):
90 self.write_recipeinc('xcursor-transparent-theme', 'PACKAGES += \"${PN}-dbg\"') 89 self.write_recipeinc('xcursor-transparent-theme', 'PACKAGES += \"${PN}-dbg\"')
91 self.append_config('ERROR_QA_remove = "packages-list"') 90 self.append_config('ERROR_QA_remove = "packages-list"')
92 self.append_config('WARN_QA_append = " packages-list"') 91 self.append_config('WARN_QA_append = " packages-list"')
93 bitbake("xcursor-transparent-theme -ccleansstate") 92 res = bitbake("xcursor-transparent-theme -f -c package")
94 res = bitbake("xcursor-transparent-theme")
95 self.delete_recipeinc('xcursor-transparent-theme') 93 self.delete_recipeinc('xcursor-transparent-theme')
96 line = self.getline(res, "QA Issue: xcursor-transparent-theme-dbg is listed in PACKAGES multiple times, this leads to packaging errors.") 94 line = self.getline(res, "QA Issue: xcursor-transparent-theme-dbg is listed in PACKAGES multiple times, this leads to packaging errors.")
97 self.assertTrue(line and line.startswith("WARNING:"), msg=res.output) 95 self.assertTrue(line and line.startswith("WARNING:"), msg=res.output)
@@ -100,8 +98,8 @@ class SanityOptionsTest(oeSelfTest):
100 def test_sanity_unsafe_script_references(self): 98 def test_sanity_unsafe_script_references(self):
101 self.write_config('WARN_QA_append = " unsafe-references-in-scripts"') 99 self.write_config('WARN_QA_append = " unsafe-references-in-scripts"')
102 100
103 bitbake("-ccleansstate gzip") 101 self.add_command_to_tearDown('bitbake -c clean gzip')
104 res = bitbake("gzip") 102 res = bitbake("gzip -f -c package_qa")
105 line = self.getline(res, "QA Issue: gzip") 103 line = self.getline(res, "QA Issue: gzip")
106 self.assertFalse(line, "WARNING: QA Issue: gzip message is present in bitbake's output and shouldn't be: %s" % res.output) 104 self.assertFalse(line, "WARNING: QA Issue: gzip message is present in bitbake's output and shouldn't be: %s" % res.output)
107 105
@@ -110,7 +108,7 @@ do_install_append_pn-gzip () {
110 echo "\n${bindir}/test" >> ${D}${bindir}/zcat 108 echo "\n${bindir}/test" >> ${D}${bindir}/zcat
111} 109}
112""") 110""")
113 res = bitbake("gzip") 111 res = bitbake("gzip -f -c package_qa")
114 line = self.getline(res, "QA Issue: gzip") 112 line = self.getline(res, "QA Issue: gzip")
115 self.assertTrue(line and line.startswith("WARNING:"), "WARNING: QA Issue: gzip message is not present in bitbake's output: %s" % res.output) 113 self.assertTrue(line and line.startswith("WARNING:"), "WARNING: QA Issue: gzip message is not present in bitbake's output: %s" % res.output)
116 114
@@ -118,7 +116,6 @@ do_install_append_pn-gzip () {
118 def test_sanity_unsafe_binary_references(self): 116 def test_sanity_unsafe_binary_references(self):
119 self.write_config('WARN_QA_append = " unsafe-references-in-binaries"') 117 self.write_config('WARN_QA_append = " unsafe-references-in-binaries"')
120 118
121 bitbake("-ccleansstate nfs-utils")
122 #res = bitbake("nfs-utils") 119 #res = bitbake("nfs-utils")
123 # FIXME when nfs-utils passes this test 120 # FIXME when nfs-utils passes this test
124 #line = self.getline(res, "QA Issue: nfs-utils") 121 #line = self.getline(res, "QA Issue: nfs-utils")
@@ -129,7 +126,8 @@ do_install_append_pn-gzip () {
129# echo "\n${bindir}/test" >> ${D}${base_sbindir}/osd_login 126# echo "\n${bindir}/test" >> ${D}${base_sbindir}/osd_login
130#} 127#}
131#""") 128#""")
132 res = bitbake("nfs-utils") 129 self.add_command_to_tearDown('bitbake -c clean nfs-utils')
130 res = bitbake("nfs-utils -f -c package_qa")
133 line = self.getline(res, "QA Issue: nfs-utils") 131 line = self.getline(res, "QA Issue: nfs-utils")
134 self.assertTrue(line and line.startswith("WARNING:"), "WARNING: QA Issue: nfs-utils message is not present in bitbake's output: %s" % res.output) 132 self.assertTrue(line and line.startswith("WARNING:"), "WARNING: QA Issue: nfs-utils message is not present in bitbake's output: %s" % res.output)
135 133
diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py
index 79a4b1fbaf..8bf9f05bb9 100644
--- a/meta/lib/oeqa/selftest/devtool.py
+++ b/meta/lib/oeqa/selftest/devtool.py
@@ -9,7 +9,8 @@ import fnmatch
9 9
10import oeqa.utils.ftools as ftools 10import oeqa.utils.ftools as ftools
11from oeqa.selftest.base import oeSelfTest 11from oeqa.selftest.base import oeSelfTest
12from oeqa.utils.commands import runCmd, bitbake, get_bb_var, create_temp_layer, runqemu, get_test_layer 12from oeqa.utils.commands import runCmd, bitbake, get_bb_var, create_temp_layer
13from oeqa.utils.commands import get_bb_vars, runqemu, get_test_layer
13from oeqa.utils.decorators import testcase 14from oeqa.utils.decorators import testcase
14 15
15class DevtoolBase(oeSelfTest): 16class DevtoolBase(oeSelfTest):
@@ -117,6 +118,20 @@ class DevtoolBase(oeSelfTest):
117 118
118class DevtoolTests(DevtoolBase): 119class DevtoolTests(DevtoolBase):
119 120
121 @classmethod
122 def setUpClass(cls):
123 bb_vars = get_bb_vars(['TOPDIR', 'SSTATE_DIR'])
124 cls.original_sstate = bb_vars['SSTATE_DIR']
125 cls.devtool_sstate = os.path.join(bb_vars['TOPDIR'], 'sstate_devtool')
126 cls.sstate_conf = 'SSTATE_DIR = "%s"\n' % cls.devtool_sstate
127 cls.sstate_conf += ('SSTATE_MIRRORS += "file://.* file:///%s/PATH"\n'
128 % cls.original_sstate)
129
130 @classmethod
131 def tearDownClass(cls):
132 cls.log.debug('Deleting devtool sstate cache on %s' % cls.devtool_sstate)
133 runCmd('rm -rf %s' % cls.devtool_sstate)
134
120 def setUp(self): 135 def setUp(self):
121 """Test case setup function""" 136 """Test case setup function"""
122 super(DevtoolTests, self).setUp() 137 super(DevtoolTests, self).setUp()
@@ -124,6 +139,7 @@ class DevtoolTests(DevtoolBase):
124 self.assertTrue(not os.path.exists(self.workspacedir), 139 self.assertTrue(not os.path.exists(self.workspacedir),
125 'This test cannot be run with a workspace directory ' 140 'This test cannot be run with a workspace directory '
126 'under the build directory') 141 'under the build directory')
142 self.append_config(self.sstate_conf)
127 143
128 def _check_src_repo(self, repo_dir): 144 def _check_src_repo(self, repo_dir):
129 """Check srctree git repository""" 145 """Check srctree git repository"""
diff --git a/meta/lib/oeqa/selftest/oescripts.py b/meta/lib/oeqa/selftest/oescripts.py
index 31cd50809c..28345dc6a2 100644
--- a/meta/lib/oeqa/selftest/oescripts.py
+++ b/meta/lib/oeqa/selftest/oescripts.py
@@ -17,12 +17,8 @@ class TestScripts(oeSelfTest):
17 path = os.path.dirname(get_bb_var('WORKDIR', 'gzip')) 17 path = os.path.dirname(get_bb_var('WORKDIR', 'gzip'))
18 old_version_recipe = os.path.join(get_bb_var('COREBASE'), 'meta/recipes-extended/gzip/gzip_1.3.12.bb') 18 old_version_recipe = os.path.join(get_bb_var('COREBASE'), 'meta/recipes-extended/gzip/gzip_1.3.12.bb')
19 old_version = '1.3.12' 19 old_version = '1.3.12'
20 bitbake("-ccleansstate gzip") 20 bitbake("-c clean gzip")
21 bitbake("-ccleansstate -b %s" % old_version_recipe) 21 bitbake("-c clean -b %s" % old_version_recipe)
22 if os.path.exists(get_bb_var('WORKDIR', "-b %s" % old_version_recipe)):
23 shutil.rmtree(get_bb_var('WORKDIR', "-b %s" % old_version_recipe))
24 if os.path.exists(get_bb_var('WORKDIR', 'gzip')):
25 shutil.rmtree(get_bb_var('WORKDIR', 'gzip'))
26 22
27 if os.path.exists(path): 23 if os.path.exists(path):
28 initial_contents = os.listdir(path) 24 initial_contents = os.listdir(path)
diff --git a/meta/lib/oeqa/selftest/prservice.py b/meta/lib/oeqa/selftest/prservice.py
index 1b9a510fd4..0b2dfe6494 100644
--- a/meta/lib/oeqa/selftest/prservice.py
+++ b/meta/lib/oeqa/selftest/prservice.py
@@ -37,7 +37,6 @@ class BitbakePrTests(oeSelfTest):
37 def increment_package_pr(self, package_name): 37 def increment_package_pr(self, package_name):
38 inc_data = "do_package_append() {\n bb.build.exec_func('do_test_prserv', d)\n}\ndo_test_prserv() {\necho \"The current date is: %s\"\n}" % datetime.datetime.now() 38 inc_data = "do_package_append() {\n bb.build.exec_func('do_test_prserv', d)\n}\ndo_test_prserv() {\necho \"The current date is: %s\"\n}" % datetime.datetime.now()
39 self.write_recipeinc(package_name, inc_data) 39 self.write_recipeinc(package_name, inc_data)
40 bitbake("-ccleansstate %s" % package_name)
41 res = bitbake(package_name, ignore_status=True) 40 res = bitbake(package_name, ignore_status=True)
42 self.delete_recipeinc(package_name) 41 self.delete_recipeinc(package_name)
43 self.assertEqual(res.status, 0, msg=res.output) 42 self.assertEqual(res.status, 0, msg=res.output)
@@ -60,7 +59,6 @@ class BitbakePrTests(oeSelfTest):
60 pr_2 = self.get_pr_version(package_name) 59 pr_2 = self.get_pr_version(package_name)
61 stamp_2 = self.get_task_stamp(package_name, track_task) 60 stamp_2 = self.get_task_stamp(package_name, track_task)
62 61
63 bitbake("-ccleansstate %s" % package_name)
64 self.assertTrue(pr_2 - pr_1 == 1, "Step between same pkg. revision is greater than 1") 62 self.assertTrue(pr_2 - pr_1 == 1, "Step between same pkg. revision is greater than 1")
65 self.assertTrue(stamp_1 != stamp_2, "Different pkg rev. but same stamp: %s" % stamp_1) 63 self.assertTrue(stamp_1 != stamp_2, "Different pkg rev. but same stamp: %s" % stamp_1)
66 64
@@ -86,7 +84,6 @@ class BitbakePrTests(oeSelfTest):
86 self.increment_package_pr(package_name) 84 self.increment_package_pr(package_name)
87 pr_2 = self.get_pr_version(package_name) 85 pr_2 = self.get_pr_version(package_name)
88 86
89 bitbake("-ccleansstate %s" % package_name)
90 self.assertTrue(pr_2 - pr_1 == 1, "Step between same pkg. revision is greater than 1") 87 self.assertTrue(pr_2 - pr_1 == 1, "Step between same pkg. revision is greater than 1")
91 88
92 @testcase(930) 89 @testcase(930)
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)
diff --git a/meta/lib/oeqa/selftest/signing.py b/meta/lib/oeqa/selftest/signing.py
index 70e8369876..35c2dc12ab 100644
--- a/meta/lib/oeqa/selftest/signing.py
+++ b/meta/lib/oeqa/selftest/signing.py
@@ -54,8 +54,9 @@ class Signing(oeSelfTest):
54 54
55 self.write_config(feature) 55 self.write_config(feature)
56 56
57 bitbake('-c cleansstate %s' % test_recipe) 57 bitbake('-c clean %s' % test_recipe)
58 bitbake(test_recipe) 58 bitbake('-f -c package_write_rpm %s' % test_recipe)
59
59 self.add_command_to_tearDown('bitbake -c clean %s' % test_recipe) 60 self.add_command_to_tearDown('bitbake -c clean %s' % test_recipe)
60 61
61 pkgdatadir = get_bb_var('PKGDATA_DIR', test_recipe) 62 pkgdatadir = get_bb_var('PKGDATA_DIR', test_recipe)
@@ -98,7 +99,6 @@ class Signing(oeSelfTest):
98 sstatedir = os.path.join(builddir, 'test-sstate') 99 sstatedir = os.path.join(builddir, 'test-sstate')
99 100
100 self.add_command_to_tearDown('bitbake -c clean %s' % test_recipe) 101 self.add_command_to_tearDown('bitbake -c clean %s' % test_recipe)
101 self.add_command_to_tearDown('bitbake -c cleansstate %s' % test_recipe)
102 self.add_command_to_tearDown('rm -rf %s' % sstatedir) 102 self.add_command_to_tearDown('rm -rf %s' % sstatedir)
103 103
104 # Determine the pub key signature 104 # Determine the pub key signature
@@ -115,7 +115,7 @@ class Signing(oeSelfTest):
115 115
116 self.write_config(feature) 116 self.write_config(feature)
117 117
118 bitbake('-c cleansstate %s' % test_recipe) 118 bitbake('-c clean %s' % test_recipe)
119 bitbake(test_recipe) 119 bitbake(test_recipe)
120 120
121 recipe_sig = glob.glob(sstatedir + '/*/*:ed:*_package.tgz.sig') 121 recipe_sig = glob.glob(sstatedir + '/*/*:ed:*_package.tgz.sig')
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