Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 3c88319

Browse files
authored
Merge pull request #316 from mythi/ci
Refkit CI: pull in the latest changes
2 parents 6fb0ad7 + a682a9b commit 3c88319

8 files changed

Lines changed: 20 additions & 20 deletions

File tree

bitbake

Submodule bitbake updated from 9c0f6e8 to 28249c4

meta-intel

Submodule meta-intel updated from 989db4c to 9f9b61b

meta-refkit-core/classes/refkit-image.bbclass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ IMAGE_CLASSES += "${@ 'image-dsk' if oe.types.boolean(d.getVar('REFKIT_USE_DSK_I
251251
# the classes. In particular IMAGE_FSTYPES is relevant because it causes
252252
# other classes to be imported.
253253

254-
inherit core-image extrausers image-buildinfo image-mode python3native
254+
inherit core-image extrausers image-buildinfo image-mode
255255

256256
# Refkit images use the image modes defined by REFKIT_IMAGE_MODE_VALID.
257257
# We cannot set IMAGE_MODE_VALID and IMAGE_MODE globally, because that would

meta-refkit/lib/oeqa/selftest/cases/refkit_poky.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ def test(self):
5959
"""
6060
Test Yocto Compatible 2.0 status of each refkit layer.
6161
This covers also:
62-
- proper declaration of dependencies (because 'yocto-compat-layer.py --dependency' adds those)
62+
- proper declaration of dependencies (because 'yocto-check-layer --dependency' adds those)
6363
- parse and dependencies ('bitbake -S none world' must work)
6464
"""
6565
def add_layers(layers):
6666
with open('conf/bblayers.conf', 'a') as f:
6767
f.write('BBLAYERS += "%s"\n' %
6868
' '.join([os.path.normpath(self.layers[layer]) for layer in layers]))
6969

70-
# Workaround for yocto-compat-layer.py not evaluating
70+
# Workaround for yocto-check-layer not evaluating
7171
# LAYERDEPENDS_security += "${@bb.utils.contains("DISTRO_FEATURES", "x11", "gnome-layer xfce-layer", "", d)}"
7272
# in meta-security: add the layer and its dependencies ourselves.
7373
# Only meta-refkit needs this because only it has a hard dependency on meta-security.
@@ -84,7 +84,7 @@ def add_layers(layers):
8484
layer not in self.poky_layers and \
8585
layer != 'meta-iotqa'])
8686

87-
cmd = "yocto-compat-layer.py --dependency %s -- %s" % (
87+
cmd = "yocto-check-layer --dependency %s -- %s" % (
8888
' '.join(self.layers.values()),
8989
self.layers[refkit_layer])
9090
# "world" does not include images. We need to enable them explicitly, otherwise
@@ -109,7 +109,7 @@ def add_layers(layers):
109109

110110
result = runCmd(cmd)
111111

112-
# yocto-compat-layer.py does not return error codes (YOCTO #11482), so we have to guess.
112+
# yocto-check-layer does not return error codes (YOCTO #11482), so we have to guess.
113113
if 'INFO: FAILED' in result.output:
114114
self.fail(result.output)
115115
self.logger.info('%s:\n%s' % (cmd, result.output))
@@ -162,10 +162,10 @@ def setUpClass(cls):
162162
for var, value in re.findall(r'^(\S+)="(.*?)"$', result.output, re.MULTILINE):
163163
cls.buildvars[var] = value
164164

165-
# We expect compatlayer in the lib dir of the directory holding yocto-compat-layer.py.
166-
yocto_compat_layer = shutil.which('yocto-compat-layer.py')
167-
scripts_path = os.path.dirname(os.path.realpath(yocto_compat_layer))
168-
cls.yocto_compat_lib_path = scripts_path + '/lib'
165+
# We expect checklayer in the lib dir of the directory holding yocto-check-layer.
166+
yocto_check_layer = shutil.which('yocto-check-layer')
167+
scripts_path = os.path.dirname(os.path.realpath(yocto_check_layer))
168+
cls.yocto_check_lib_path = scripts_path + '/lib'
169169

170170
def setUpLocal(self):
171171
"""Creates a clean build directory with a Poky configuration."""
@@ -243,17 +243,17 @@ def test_refkit_conf_signature(self):
243243
"""Ensure that including the refkit config does not change the signature of other layers."""
244244
old_path = sys.path
245245
try:
246-
sys.path = [self.yocto_compat_lib_path] + sys.path
247-
import compatlayer
246+
sys.path = [self.yocto_check_lib_path] + sys.path
247+
import checklayer
248248

249249
self.add_refkit_layers()
250250

251251
# Ignore world build errors, some of the non-refkit layers might be broken.
252-
old_sigs, _ = compatlayer.get_signatures(self.poky_dir, failsafe=True)
252+
old_sigs, _ = checklayer.get_signatures(self.poky_dir, failsafe=True)
253253
# Now add refkit-conf.inc, without changing the DISTRO_FEATURES.
254254
self.append_config('require conf/distro/include/refkit-config.inc')
255-
curr_sigs, _ = compatlayer.get_signatures(self.poky_dir, failsafe=True)
256-
msg = compatlayer.compare_signatures(old_sigs, curr_sigs)
255+
curr_sigs, _ = checklayer.get_signatures(self.poky_dir, failsafe=True)
256+
msg = checklayer.compare_signatures(old_sigs, curr_sigs)
257257
if msg is not None:
258258
self.fail('Including refkit-config.inc changed signatures.\n%s' % msg)
259259
finally:

meta-security

Submodule meta-security updated from e180062 to 607d2bc

meta-yocto

Submodule meta-yocto updated from 6909368 to e1f3639

openembedded-core

Submodule openembedded-core updated from a15ec97 to 70e5444

0 commit comments

Comments
 (0)