summaryrefslogtreecommitdiffstats
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 10:54:39 +0100
commit9a2d2f7c2b7236667a6d80355f73db4c27e6582e (patch)
treebb9596e0924bb5e56653c53a42823a95c2af01bd
parent43b6d040979a766baa0fb2b1ff9125a94bb0152f (diff)
downloadopenembedded-core-9a2d2f7c2b7236667a6d80355f73db4c27e6582e.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. 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>
-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() {
pass
elif bb.data.inherits_class('ptest', d):
bb.note("Package %s QA: skipping unimplemented-ptest: ptest implementation detected" % d.getVar('PN'))
+ elif srcdir == d.getVar('WORKDIR'):
+ bb.note("Package %s QA: skipping unimplemented-ptest: This check is not supported for recipe with \"S = \"${WORKDIR}\"" % d.getVar('PN'))
# Detect perl Test:: based tests
elif os.path.exists(os.path.join(srcdir, "t")) and any(filename.endswith('.t') for filename in os.listdir(os.path.join(srcdir, 't'))):