summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2022-04-02 01:59:04 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-03 17:52:24 +0100
commit8c9503880e7d88e036520966345bafd5b0b4ce9d (patch)
tree2d21f134edd842943b863df949414c05fe3ebb85
parent61d38cd3a29036309514c0e5da0aab60e938d185 (diff)
downloadpoky-8c9503880e7d88e036520966345bafd5b0b4ce9d.tar.gz
insane.bbclass: Make do_qa_patch() depend on if patch-fuzz is in ERROR_QA
Adding "patch-fuzz" to ERROR_QA should trigger the patch tasks to rerun to make sure any already existing fuzz is caught. This is achieved by using bb.utils.filter() to see if "patch-fuzz" is in ERROR_QA/WARN_QA as it adds whether the filtered strings are set or not to the task hash. (From OE-Core rev: 19a88df166862eb04fe6bee487796ef460d08771) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/insane.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 0deebdb148..62086e1a9a 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -1182,9 +1182,9 @@ python do_qa_patch() {
1182 msg += " devtool modify %s\n" % d.getVar('PN') 1182 msg += " devtool modify %s\n" % d.getVar('PN')
1183 msg += " devtool finish --force-patch-refresh %s <layer_path>\n\n" % d.getVar('PN') 1183 msg += " devtool finish --force-patch-refresh %s <layer_path>\n\n" % d.getVar('PN')
1184 msg += "Don't forget to review changes done by devtool!\n" 1184 msg += "Don't forget to review changes done by devtool!\n"
1185 if 'patch-fuzz' in d.getVar('ERROR_QA'): 1185 if bb.utils.filter('ERROR_QA', 'patch-fuzz', d):
1186 bb.error(msg) 1186 bb.error(msg)
1187 elif 'patch-fuzz' in d.getVar('WARN_QA'): 1187 elif bb.utils.filter('WARN_QA', 'patch-fuzz', d):
1188 bb.warn(msg) 1188 bb.warn(msg)
1189 msg = "Patch log indicates that patches do not apply cleanly." 1189 msg = "Patch log indicates that patches do not apply cleanly."
1190 oe.qa.handle_error("patch-fuzz", msg, d) 1190 oe.qa.handle_error("patch-fuzz", msg, d)