mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
Revert "oeqa/selftest/kernel.py: Add new file destined for kernel related tests"
breaking on selftest
NOTE: recipe core-image-minimal-1.0-r0: task do_rootfs: Started
ERROR: core-image-minimal-1.0-r0 do_rootfs: Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:license_create_manifest(d)
0003:
File: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/classes/license.bbclass', lineno: 48, function: license_create_manifest
0044: pkg_dic = {}
0045: for pkg in sorted(image_list_installed_packages(d)):
0046: pkg_info = os.path.join(d.getVar('PKGDATA_DIR', True),
0047: 'runtime-reverse', pkg)
*** 0048: pkg_name = os.path.basename(os.readlink(pkg_info))
0049:
0050: pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
0051: if not "LICENSE" in pkg_dic[pkg_name].keys():
0052: pkg_lic_name = "LICENSE_" + pkg_name
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/sysroots/qemux86-64/pkgdata/runtime-reverse/kernel-4.8.3-yocto-standard'
This reverts commit c3d2df883a.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
09278be8c2
commit
b654f5175d
@@ -1,29 +0,0 @@
|
||||
import os
|
||||
import oeqa.utils.ftools as ftools
|
||||
from oeqa.selftest.base import oeSelfTest
|
||||
from oeqa.utils.commands import runCmd, bitbake, get_bb_var
|
||||
from oeqa.utils.decorators import testcase
|
||||
|
||||
class KernelTests(oeSelfTest):
|
||||
def test_dummy_kernel(self):
|
||||
"""
|
||||
[YP#7202]
|
||||
- test that linux-dummy target can be used as kernel provider for an image
|
||||
- check no "multiple providers are available for" message is received while building the image
|
||||
"""
|
||||
config_param = 'PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"'
|
||||
self.append_config(config_param)
|
||||
arch_dir = get_bb_var('MULTIMACH_TARGET_SYS', target='linux-dummy')
|
||||
stamps_dir = os.path.join(os.getenv('BUILDDIR'), "tmp/stamps")
|
||||
lnx_dmy_stamps_dir = os.path.join(stamps_dir, arch_dir, 'linux-dummy')
|
||||
res = bitbake("linux-dummy -ccleansstate") # ensure we have nothing related to linux-dummy in stamps dir.
|
||||
self.assertFalse(os.listdir(lnx_dmy_stamps_dir), msg='linux-dummy stamps dir. should have been cleaned. Something \
|
||||
happened with bitbake linux-dummy -ccleansstate')
|
||||
res = bitbake("core-image-minimal")# testing linux-dummy is both buildable and usable within an image
|
||||
self.remove_config(config_param)
|
||||
self.assertEqual(res.status, 0, msg="core-image-minimal failed to build. Please check logs. ")
|
||||
self.assertNotIn("multiple providers are available for", res.output, msg="'multiple providers are available for\
|
||||
linux-dummy' message received during buildtime.")
|
||||
self.assertTrue(os.listdir(lnx_dmy_stamps_dir), msg="linux-dummy didn't build correctly. No stamp present in stamps \
|
||||
dir. %s" % lnx_dmy_stamps_dir)
|
||||
|
||||
Reference in New Issue
Block a user