summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoann Congal <yoann.congal@smile.fr>2024-07-10 00:42:33 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-16 11:56:53 +0100
commitd85a10e4985f4809272487c5dff93c7b78f73abb (patch)
treefb5ccee193be908f651bb2cd3e4fb473f42ad9ab
parent15110d50d460a63b8be16ee76a933d1a59e81f55 (diff)
downloadpoky-d85a10e4985f4809272487c5dff93c7b78f73abb.tar.gz
insane: skip unimplemented-ptest checks if disabled
This avoids searching through ${S} multiple times if unimplemented-ptest QA check is disabled (the default case). (From OE-Core rev: 8ee42430a91d13de2b7a53c2ae04aa54bd76fad0) 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>
-rw-r--r--meta/classes-global/insane.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index 191f6940d9..7bf33f9bc0 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -1360,7 +1360,7 @@ python do_qa_patch() {
1360 return False 1360 return False
1361 1361
1362 srcdir = d.getVar('S') 1362 srcdir = d.getVar('S')
1363 if not bb.utils.contains('DISTRO_FEATURES', 'ptest', True, False, d): 1363 if not bb.utils.contains('DISTRO_FEATURES', 'ptest', True, False, d) or not bb.utils.contains('ALL_QA', 'unimplemented-ptest', True, False, d):
1364 pass 1364 pass
1365 elif bb.data.inherits_class('ptest', d): 1365 elif bb.data.inherits_class('ptest', d):
1366 bb.note("Package %s QA: skipping unimplemented-ptest: ptest implementation detected" % d.getVar('PN')) 1366 bb.note("Package %s QA: skipping unimplemented-ptest: ptest implementation detected" % d.getVar('PN'))