diff options
author | Ross Burton <ross.burton@intel.com> | 2016-11-02 23:04:46 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-15 15:19:52 +0000 |
commit | b654f5175d3d4ac146d31107e944d01694281ceb (patch) | |
tree | 3a56670f7d6a87c67c31ba46399d7fd885b363a8 /meta | |
parent | 09278be8c209976da03f63b5a956d212ac171317 (diff) | |
download | poky-b654f5175d3d4ac146d31107e944d01694281ceb.tar.gz |
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 c3d2df883a9d6d5036277114339673656d89a728.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/kernel.py | 29 |
1 files changed, 0 insertions, 29 deletions
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 @@ | |||
1 | import os | ||
2 | import oeqa.utils.ftools as ftools | ||
3 | from oeqa.selftest.base import oeSelfTest | ||
4 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var | ||
5 | from oeqa.utils.decorators import testcase | ||
6 | |||
7 | class KernelTests(oeSelfTest): | ||
8 | def test_dummy_kernel(self): | ||
9 | """ | ||
10 | [YP#7202] | ||
11 | - test that linux-dummy target can be used as kernel provider for an image | ||
12 | - check no "multiple providers are available for" message is received while building the image | ||
13 | """ | ||
14 | config_param = 'PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"' | ||
15 | self.append_config(config_param) | ||
16 | arch_dir = get_bb_var('MULTIMACH_TARGET_SYS', target='linux-dummy') | ||
17 | stamps_dir = os.path.join(os.getenv('BUILDDIR'), "tmp/stamps") | ||
18 | lnx_dmy_stamps_dir = os.path.join(stamps_dir, arch_dir, 'linux-dummy') | ||
19 | res = bitbake("linux-dummy -ccleansstate") # ensure we have nothing related to linux-dummy in stamps dir. | ||
20 | self.assertFalse(os.listdir(lnx_dmy_stamps_dir), msg='linux-dummy stamps dir. should have been cleaned. Something \ | ||
21 | happened with bitbake linux-dummy -ccleansstate') | ||
22 | res = bitbake("core-image-minimal")# testing linux-dummy is both buildable and usable within an image | ||
23 | self.remove_config(config_param) | ||
24 | self.assertEqual(res.status, 0, msg="core-image-minimal failed to build. Please check logs. ") | ||
25 | self.assertNotIn("multiple providers are available for", res.output, msg="'multiple providers are available for\ | ||
26 | linux-dummy' message received during buildtime.") | ||
27 | self.assertTrue(os.listdir(lnx_dmy_stamps_dir), msg="linux-dummy didn't build correctly. No stamp present in stamps \ | ||
28 | dir. %s" % lnx_dmy_stamps_dir) | ||
29 | |||