summaryrefslogtreecommitdiffstats
path: root/meta/classes-global
diff options
context:
space:
mode:
authorYoann Congal <yoann.congal@smile.fr>2023-10-16 17:51:12 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-17 11:41:34 +0100
commit11bab63ca8f7f0350e519d62282e4fcdc3a470ce (patch)
tree7047f389842302325bec812a36591d1942c6ce70 /meta/classes-global
parent1e94086808200844825d383858efab5ff177e79c (diff)
downloadpoky-11bab63ca8f7f0350e519d62282e4fcdc3a470ce.tar.gz
insane: skip unimplemented-ptest on S=WORKDIR recipes
On S=WORKDIR recipes, the unimplemented-ptest check will scan the whole WORKDIR and "see" disappearing file and directory. (From OE-Core rev: 9a2d2f7c2b7236667a6d80355f73db4c27e6582e) Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Reported-by: Mark Hatle <mark.hatle@amd.com> Closes: https://lists.openembedded.org/g/openembedded-core/message/189254 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global')
-rw-r--r--meta/classes-global/insane.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index 07de974a54..f7a2c392cf 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -1370,6 +1370,8 @@ python do_qa_patch() {
1370 pass 1370 pass
1371 elif bb.data.inherits_class('ptest', d): 1371 elif bb.data.inherits_class('ptest', d):
1372 bb.note("Package %s QA: skipping unimplemented-ptest: ptest implementation detected" % d.getVar('PN')) 1372 bb.note("Package %s QA: skipping unimplemented-ptest: ptest implementation detected" % d.getVar('PN'))
1373 elif srcdir == d.getVar('WORKDIR'):
1374 bb.note("Package %s QA: skipping unimplemented-ptest: This check is not supported for recipe with \"S = \"${WORKDIR}\"" % d.getVar('PN'))
1373 1375
1374 # Detect perl Test:: based tests 1376 # Detect perl Test:: based tests
1375 elif os.path.exists(os.path.join(srcdir, "t")) and any(filename.endswith('.t') for filename in os.listdir(os.path.join(srcdir, 't'))): 1377 elif os.path.exists(os.path.join(srcdir, "t")) and any(filename.endswith('.t') for filename in os.listdir(os.path.join(srcdir, 't'))):