summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/devtool.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/devtool.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/devtool.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py
index 0cb7403f16..c78a68be5b 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -1076,9 +1076,10 @@ class DevtoolUpdateTests(DevtoolBase):
1076 def test_devtool_update_recipe_append_git(self): 1076 def test_devtool_update_recipe_append_git(self):
1077 # Check preconditions 1077 # Check preconditions
1078 testrecipe = 'mtd-utils-selftest' 1078 testrecipe = 'mtd-utils-selftest'
1079 bb_vars = get_bb_vars(['FILE', 'SRC_URI'], testrecipe) 1079 bb_vars = get_bb_vars(['FILE', 'SRC_URI', 'LAYERSERIES_CORENAMES'], testrecipe)
1080 recipefile = bb_vars['FILE'] 1080 recipefile = bb_vars['FILE']
1081 src_uri = bb_vars['SRC_URI'] 1081 src_uri = bb_vars['SRC_URI']
1082 corenames = bb_vars['LAYERSERIES_CORENAMES']
1082 self.assertIn('git://', src_uri, 'This test expects the %s recipe to be a git recipe' % testrecipe) 1083 self.assertIn('git://', src_uri, 'This test expects the %s recipe to be a git recipe' % testrecipe)
1083 for entry in src_uri.split(): 1084 for entry in src_uri.split():
1084 if entry.startswith('git://'): 1085 if entry.startswith('git://'):
@@ -1109,7 +1110,7 @@ class DevtoolUpdateTests(DevtoolBase):
1109 f.write('BBFILE_PATTERN_oeselftesttemplayer = "^${LAYERDIR}/"\n') 1110 f.write('BBFILE_PATTERN_oeselftesttemplayer = "^${LAYERDIR}/"\n')
1110 f.write('BBFILE_PRIORITY_oeselftesttemplayer = "999"\n') 1111 f.write('BBFILE_PRIORITY_oeselftesttemplayer = "999"\n')
1111 f.write('BBFILE_PATTERN_IGNORE_EMPTY_oeselftesttemplayer = "1"\n') 1112 f.write('BBFILE_PATTERN_IGNORE_EMPTY_oeselftesttemplayer = "1"\n')
1112 f.write('LAYERSERIES_COMPAT_oeselftesttemplayer = "${LAYERSERIES_COMPAT_core}"\n') 1113 f.write('LAYERSERIES_COMPAT_oeselftesttemplayer = "%s"\n' % corenames)
1113 self.add_command_to_tearDown('bitbake-layers remove-layer %s || true' % templayerdir) 1114 self.add_command_to_tearDown('bitbake-layers remove-layer %s || true' % templayerdir)
1114 result = runCmd('bitbake-layers add-layer %s' % templayerdir, cwd=self.builddir) 1115 result = runCmd('bitbake-layers add-layer %s' % templayerdir, cwd=self.builddir)
1115 # Create the bbappend 1116 # Create the bbappend