@@ -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 :
0 commit comments