From c4f6672fde4af5d3ae50ef7887ec2168dbfa93df Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 2 Nov 2016 23:04:46 +0000 Subject: 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: 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 c3d2df883a9d6d5036277114339673656d89a728. --- meta/lib/oeqa/selftest/kernel.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 meta/lib/oeqa/selftest/kernel.py diff --git a/meta/lib/oeqa/selftest/kernel.py b/meta/lib/oeqa/selftest/kernel.py deleted file mode 100644 index 3fe3517f91..0000000000 --- a/meta/lib/oeqa/selftest/kernel.py +++ /dev/null @@ -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) - -- cgit v1.2.3