summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes-global/insane.bbclass16
-rw-r--r--meta/lib/oeqa/selftest/cases/devtool.py1
-rw-r--r--meta/lib/oeqa/selftest/cases/kerneldevelopment.py1
3 files changed, 5 insertions, 13 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index 8788f58fc5..a4dbc9a123 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -44,10 +44,11 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
44 already-stripped installed-vs-shipped ldflags compile-host-path \ 44 already-stripped installed-vs-shipped ldflags compile-host-path \
45 install-host-path pn-overrides unknown-configure-option \ 45 install-host-path pn-overrides unknown-configure-option \
46 useless-rpaths rpaths staticdev empty-dirs \ 46 useless-rpaths rpaths staticdev empty-dirs \
47 patch-fuzz patch-status-core\ 47 patch-fuzz \
48 " 48 "
49# Add usrmerge QA check based on distro feature 49# Add usrmerge QA check based on distro feature
50ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}" 50ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}"
51ERROR_QA:append:layer-core = " patch-status"
51 52
52FAKEROOT_QA = "host-user-contaminated" 53FAKEROOT_QA = "host-user-contaminated"
53FAKEROOT_QA[doc] = "QA tests which need to run under fakeroot. If any \ 54FAKEROOT_QA[doc] = "QA tests which need to run under fakeroot. If any \
@@ -1334,24 +1335,13 @@ python do_qa_patch() {
1334 import re 1335 import re
1335 from oe import patch 1336 from oe import patch
1336 1337
1337 allpatches = False
1338 if bb.utils.filter('ERROR_QA', 'patch-status-noncore', d) or bb.utils.filter('WARN_QA', 'patch-status-noncore', d):
1339 allpatches = True
1340
1341 coremeta_path = os.path.join(d.getVar('COREBASE'), 'meta', '') 1338 coremeta_path = os.path.join(d.getVar('COREBASE'), 'meta', '')
1342 for url in patch.src_patches(d): 1339 for url in patch.src_patches(d):
1343 (_, _, fullpath, _, _, _) = bb.fetch.decodeurl(url) 1340 (_, _, fullpath, _, _, _) = bb.fetch.decodeurl(url)
1344 1341
1345 # skip patches not in oe-core
1346 patchtype = "patch-status-core"
1347 if not os.path.abspath(fullpath).startswith(coremeta_path):
1348 patchtype = "patch-status-noncore"
1349 if not allpatches:
1350 continue
1351
1352 msg = oe.qa.check_upstream_status(fullpath) 1342 msg = oe.qa.check_upstream_status(fullpath)
1353 if msg: 1343 if msg:
1354 oe.qa.handle_error(patchtype, msg, d) 1344 oe.qa.handle_error("patch-status", msg, d)
1355 1345
1356 oe.qa.exit_if_errors(d) 1346 oe.qa.exit_if_errors(d)
1357} 1347}
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py
index 397895c936..4c8e375d00 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -1469,6 +1469,7 @@ class DevtoolUpdateTests(DevtoolBase):
1469 def test_devtool_finish_modify_git_subdir(self): 1469 def test_devtool_finish_modify_git_subdir(self):
1470 # Check preconditions 1470 # Check preconditions
1471 testrecipe = 'dos2unix' 1471 testrecipe = 'dos2unix'
1472 self.append_config('ERROR_QA:remove:pn-dos2unix = "patch-status"\n')
1472 bb_vars = get_bb_vars(['SRC_URI', 'S', 'WORKDIR', 'FILE'], testrecipe) 1473 bb_vars = get_bb_vars(['SRC_URI', 'S', 'WORKDIR', 'FILE'], testrecipe)
1473 self.assertIn('git://', bb_vars['SRC_URI'], 'This test expects the %s recipe to be a git recipe' % testrecipe) 1474 self.assertIn('git://', bb_vars['SRC_URI'], 'This test expects the %s recipe to be a git recipe' % testrecipe)
1474 workdir_git = '%s/git/' % bb_vars['WORKDIR'] 1475 workdir_git = '%s/git/' % bb_vars['WORKDIR']
diff --git a/meta/lib/oeqa/selftest/cases/kerneldevelopment.py b/meta/lib/oeqa/selftest/cases/kerneldevelopment.py
index 4325f38598..b1f78a0cd1 100644
--- a/meta/lib/oeqa/selftest/cases/kerneldevelopment.py
+++ b/meta/lib/oeqa/selftest/cases/kerneldevelopment.py
@@ -64,6 +64,7 @@ class KernelDev(OESelftestTestCase):
64 recipe_append = os.path.join(self.recipeskernel_dir, 'linux-yocto_%.bbappend') 64 recipe_append = os.path.join(self.recipeskernel_dir, 'linux-yocto_%.bbappend')
65 with open(recipe_append, 'w+') as fh: 65 with open(recipe_append, 'w+') as fh:
66 fh.write('SRC_URI += "file://%s"\n' % patch_name) 66 fh.write('SRC_URI += "file://%s"\n' % patch_name)
67 fh.write('ERROR_QA:remove:pn-linux-yocto = "patch-status"\n')
67 fh.write('FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"') 68 fh.write('FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"')
68 69
69 runCmd('bitbake virtual/kernel -c clean') 70 runCmd('bitbake virtual/kernel -c clean')