]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs.py: ignore "NOTE:" when catching warnings
authorRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Fri, 6 Feb 2015 20:59:57 +0000 (12:59 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 Feb 2015 08:40:33 +0000 (08:40 +0000)
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:"

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/rootfs.py

index f42a2ae7b3c78ef42887dc87d14a7a3781891356..dd7aa44fed501efc28a50352c5b2bccd719454a9 100644 (file)
@@ -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)