diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-19 14:40:55 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-20 23:24:26 +0100 |
commit | 6b26715fd7f660bf0ec8fad5bda6d866854fdc5f (patch) | |
tree | 3c566ed84e0b6a1c2757f81042308b419b7da105 /meta/lib | |
parent | 42921e63a4969bde69d608afd497071341423d13 (diff) | |
download | poky-6b26715fd7f660bf0ec8fad5bda6d866854fdc5f.tar.gz |
insane: Improve patch-status layer filtering
Now that we have layer overrides, we can easily enable patch-status in
ERROR_QA without the hardcoded code making it easier for other layers
to opt into the checks.
(From OE-Core rev: 61a881fdbe8b5a21c6276b8a5d06cc30486b1eb3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/devtool.py | 1 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/cases/kerneldevelopment.py | 1 |
2 files changed, 2 insertions, 0 deletions
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') |