mirror of
https://git.yoctoproject.org/poky
synced 2026-02-27 03:49:41 +01:00
image-buildinfo,oeqa/selftest/containerimage: Ensure image-buildinfo doesn't break tests
Having image-buildinfo enabled causes containerimage.ContainerImageTests.test_expected_files to fail due to the presence of an unexpected file: ['./', './etc/', - './etc/build', './etc/default/', './etc/default/postinst', Tweak the class to allow it to be disabled and disable it from the test just in case it was enabled. (From OE-Core rev: af67bf422a4df5b7e07894512ff73a5f493682ab) (From OE-Core rev: f49ab8b1610c045acaed7b964d12f07f969df856) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -64,6 +64,8 @@ def buildinfo_target(d):
|
||||
|
||||
# Write build information to target filesystem
|
||||
python buildinfo () {
|
||||
if not d.getVar('IMAGE_BUILDINFO_FILE'):
|
||||
return
|
||||
with open(d.expand('${IMAGE_ROOTFS}${IMAGE_BUILDINFO_FILE}'), 'w') as build:
|
||||
build.writelines((
|
||||
'''-----------------------
|
||||
|
||||
@@ -39,6 +39,7 @@ class ContainerImageTests(OESelftestTestCase):
|
||||
IMAGE_FSTYPES = "container"
|
||||
PACKAGE_CLASSES = "package_ipk"
|
||||
IMAGE_FEATURES = ""
|
||||
IMAGE_BUILDINFO_FILE = ""
|
||||
""")
|
||||
|
||||
bbvars = get_bb_vars(['bindir', 'sysconfdir', 'localstatedir',
|
||||
|
||||
Reference in New Issue
Block a user