[oe-commits] [openembedded-core] 03/07: rootfs.py: Simplify the regular expression used in _log_check_warn()

git at git.openembedded.org git at git.openembedded.org
Thu May 19 08:16:16 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit e68519c29c7e266163552abdb608671228bc3427
Author: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
AuthorDate: Thu May 19 00:28:14 2016 +0200

    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...
    
    Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oe/rootfs.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list