]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
insane: skip unimplemented-ptest on S=WORKDIR recipes
authorYoann Congal <yoann.congal@smile.fr>
Mon, 16 Oct 2023 15:51:12 +0000 (17:51 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Oct 2023 09:54:39 +0000 (10:54 +0100)
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>
meta/classes-global/insane.bbclass

index 07de974a54646e9f9ec9a0f57424a8198721b918..f7a2c392cf42ab9267aa41924f6cc0645ec19e63 100644 (file)
@@ -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'))):