]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
insane: skip unimplemented-ptest checks if disabled
authorYoann Congal <yoann.congal@smile.fr>
Tue, 9 Jul 2024 22:42:33 +0000 (00:42 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Jul 2024 10:56:47 +0000 (11:56 +0100)
This avoids searching through ${S} multiple times if unimplemented-ptest
QA check is disabled (the default case).

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/insane.bbclass

index 191f6940d955f2fda5c0a77beba1893cde2ac5d8..7bf33f9bc0fa73ab8ca333652ca64828bf85594d 100644 (file)
@@ -1360,7 +1360,7 @@ python do_qa_patch() {
         return False
 
     srcdir = d.getVar('S')
-    if not bb.utils.contains('DISTRO_FEATURES', 'ptest', True, False, d):
+    if not bb.utils.contains('DISTRO_FEATURES', 'ptest', True, False, d) or not bb.utils.contains('ALL_QA', 'unimplemented-ptest', True, False, d):
         pass
     elif bb.data.inherits_class('ptest', d):
         bb.note("Package %s QA: skipping unimplemented-ptest: ptest implementation detected" % d.getVar('PN'))