rootfs.py: Simplify the regular expression used in _log_check_warn()

In commit 0387d095 lines with "NOTE:" in them were excluded from the
log check for warnings. However, those lines were only there in the
first place since the regular expression that is used to find warning
messages explicitly included those lines...

(From OE-Core rev: 865ab39f18a52ed84217df56d0e65113e2894d02)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Peter Kjellerstedt 2016-05-19 00:28:14 +02:00 committed by Richard Purdie
parent d416a4e16e
commit a653f36814
1 changed files with 2 additions and 2 deletions

View File

@ -41,11 +41,11 @@ class Rootfs(object):
pass
def _log_check_warn(self):
r = re.compile('^(warn|Warn|NOTE: warn|NOTE: Warn|WARNING:)')
r = re.compile('^(warn|Warn|WARNING:)')
log_path = self.d.expand("${T}/log.do_rootfs")
with open(log_path, 'r') as log:
for line in log:
if 'log_check' in line or 'NOTE:' in line:
if 'log_check' in line:
continue
m = r.search(line)