mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
rootfs.py: ignore "NOTE:" when catching warnings
The script looks for any warn|Warn pattern in the log. However, it may happen that the warn|Warn pattern appears as part of the name of the objects described in the NOTE lines of the log. Thus, to avoid false positives, ignore the line if it contains the word "NOTE:" (From OE-Core rev: 0387d0957909a9977efd8b2008e4d1c6d81ceb2a) Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2c2b003de5
commit
4870290ee5
@@ -359,7 +359,7 @@ class RpmRootfs(Rootfs):
|
||||
log_path = self.d.expand("${T}/log.do_rootfs")
|
||||
with open(log_path, 'r') as log:
|
||||
for line in log.read().split('\n'):
|
||||
if 'log_check' in line:
|
||||
if 'log_check' or 'NOTE:' in line:
|
||||
continue
|
||||
|
||||
m = r.search(line)
|
||||
|
||||
Reference in New Issue
Block a user