diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-08-11 18:59:45 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-14 17:33:49 +0100 |
commit | e64e8aa72544c1eb271411a0a3c33c9d4f5b606c (patch) | |
tree | f4355227ac608eb21e8d6411ff7340c398b824de /meta | |
parent | 6456bec6ce3ad5f0e7a6f2b80fd73e3120cf8b40 (diff) | |
download | poky-e64e8aa72544c1eb271411a0a3c33c9d4f5b606c.tar.gz |
oeqa/parselogs: grep for exact errors list keywords
Given grep expression looks for error strings regardless of the
semantics and this ends up it flagging things like
***********************
Log: /mnt/a/yoe/build/tmp/work/raspberrypi3_64-yoe-linux-musl/yoe-qt5-wayland-image/1.0-r0/target_logs/weston.log
-----------------------
Central error: EGL_KHR_create_context_no_error EGL_KHR_fence_sync
***********************
here EGL_KHR_create_context_no_error is an API, therefore the check
should be tightened a bit so explicitly look for error words so such
false positives don't show up
This helps in fixing wrong matches e.g. on rpi3 dmesg have strings like
above
(From OE-Core rev: e54ecea0a7d309533973b31bdbda178d9af92632)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/parselogs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/parselogs.py b/meta/lib/oeqa/runtime/cases/parselogs.py index eb2ebb1958..19c9c52a0a 100644 --- a/meta/lib/oeqa/runtime/cases/parselogs.py +++ b/meta/lib/oeqa/runtime/cases/parselogs.py | |||
@@ -292,7 +292,7 @@ class ParseLogsTest(OERuntimeTestCase): | |||
292 | grepcmd = 'grep ' | 292 | grepcmd = 'grep ' |
293 | grepcmd += '-Ei "' | 293 | grepcmd += '-Ei "' |
294 | for error in errors: | 294 | for error in errors: |
295 | grepcmd += error + '|' | 295 | grepcmd += '\<' + error + '\>' + '|' |
296 | grepcmd = grepcmd[:-1] | 296 | grepcmd = grepcmd[:-1] |
297 | grepcmd += '" ' + str(log) + " | grep -Eiv \'" | 297 | grepcmd += '" ' + str(log) + " | grep -Eiv \'" |
298 | 298 | ||