From: Yoann Congal Date: Tue, 9 Jul 2024 22:42:33 +0000 (+0200) Subject: insane: skip unimplemented-ptest checks if disabled X-Git-Tag: uninative-4.6~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ee42430a91d13de2b7a53c2ae04aa54bd76fad0;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git insane: skip unimplemented-ptest checks if disabled This avoids searching through ${S} multiple times if unimplemented-ptest QA check is disabled (the default case). Signed-off-by: Yoann Congal Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 191f6940d95..7bf33f9bc0f 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass @@ -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'))