oeqa/selftest/bbtests: Test bitbake --setscene-only option
Bitbake option to restore from sstate only within a build (i.e. execute no real tasks, only setscene) fix for [YOCTO #8876] (From OE-Core rev: 3821aee0129b87a859b3a540b82745fdae184721) Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
7e5b451462
commit
9cd64edebf
|
@ -232,3 +232,18 @@ SSTATE_DIR = \"${TOPDIR}/download-selftest\"
|
|||
self.assertEqual(result.status, 0, "Bitbake failed, exit code %s, output %s" % (result.status, result.output))
|
||||
self.assertFalse(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv3')))
|
||||
self.assertTrue(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv2')))
|
||||
|
||||
@testcase(1422)
|
||||
def test_setscene_only(self):
|
||||
""" Bitbake option to restore from sstate only within a build (i.e. execute no real tasks, only setscene)"""
|
||||
test_recipe = 'ed'
|
||||
|
||||
bitbake(test_recipe)
|
||||
bitbake('-c clean %s' % test_recipe)
|
||||
ret = bitbake('--setscene-only %s' % test_recipe)
|
||||
|
||||
tasks = re.findall(r'task\s+(do_\S+):', ret.output)
|
||||
|
||||
for task in tasks:
|
||||
self.assertIn('_setscene', task, 'A task different from _setscene ran: %s.\n'
|
||||
'Executed tasks were: %s' % (task, str(tasks)))
|
||||
|
|
Loading…
Reference in New Issue