[oe-commits] Ricardo Neri : rootfs.py: ignore "NOTE:" when catching warnings

git at git.openembedded.org git at git.openembedded.org
Sat Feb 14 08:41:53 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 0387d0957909a9977efd8b2008e4d1c6d81ceb2a
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=0387d0957909a9977efd8b2008e4d1c6d81ceb2a

Author: Ricardo Neri <ricardo.neri-calderon at linux.intel.com>
Date:   Fri Feb  6 12:59:57 2015 -0800

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:"

Signed-off-by: Ricardo Neri <ricardo.neri-calderon at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/lib/oe/rootfs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index f42a2ae..dd7aa44 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -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)



More information about the Openembedded-commits mailing list