mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 14:02:21 +02:00
patch.py: Change to more strictly fuzz detection
When applying patch subject is including a " fuzz ", do_patch_qa detect Fuzz. After the patch is applied, the following log message appears. Applying: meson: treat all fuzz cases as unit tests The current Fuzz detection checks for the presence of "fuzz" in this log message. The log in this example will be treated as Fuzz, despite its success. This patch change to more strictly fuzz detection. if log message is including " fuzz " and "Hunk " in log message, it will be treated as Fuzz. (From OE-Core rev: a8605c66ef5afe7c3583366781dfd90fe3526398) Signed-off-by: Naoto Yamaguchi <wata2ki@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
3d418733ff
commit
49e92f8d6d
@@ -41,7 +41,7 @@ def runcmd(args, dir = None):
|
||||
(exitstatus, output) = subprocess.getstatusoutput(cmd)
|
||||
if exitstatus != 0:
|
||||
raise CmdError(cmd, exitstatus >> 8, output)
|
||||
if " fuzz " in output:
|
||||
if " fuzz " in output and "Hunk " in output:
|
||||
# Drop patch fuzz info with header and footer to log file so
|
||||
# insane.bbclass can handle to throw error/warning
|
||||
bb.note("--- Patch fuzz start ---\n%s\n--- Patch fuzz end ---" % format(output))
|
||||
|
||||
Reference in New Issue
Block a user