diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2018-08-13 16:54:37 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-14 11:36:31 +0100 |
commit | fd85436b042b6b9962438fe1e92a193db54755f7 (patch) | |
tree | b4ce10ee456501d873bcd7367c6e4b354da19fb1 /meta/lib | |
parent | efd3d0debb8dbfa1d985ea2962338904f54e98d9 (diff) | |
download | poky-fd85436b042b6b9962438fe1e92a193db54755f7.tar.gz |
parselogs.py: output correct log location
The log entry in results is altered to remove 'target_logs'. This
causes wrong log location in output.
e.g.
AssertionError: 1 != 0 : Log: /path/to/image/1.0-r0/postinstall.log
But when user wants to check the log, the user will find the log is
not present. The actual log file is /path/to/image/1.0-r0/target_logs/postinstall.log.
So fix to use the correct log location.
(From OE-Core rev: df3a2e21648d6b649ebda7e6032afbd63c939f2b)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/parselogs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/cases/parselogs.py b/meta/lib/oeqa/runtime/cases/parselogs.py index 017b5505e1..f6e9820cdc 100644 --- a/meta/lib/oeqa/runtime/cases/parselogs.py +++ b/meta/lib/oeqa/runtime/cases/parselogs.py | |||
@@ -313,7 +313,7 @@ class ParseLogsTest(OERuntimeTestCase): | |||
313 | pass | 313 | pass |
314 | 314 | ||
315 | if result is not None: | 315 | if result is not None: |
316 | results[log.replace('target_logs/','')] = {} | 316 | results[log] = {} |
317 | rez = result.splitlines() | 317 | rez = result.splitlines() |
318 | 318 | ||
319 | for xrez in rez: | 319 | for xrez in rez: |
@@ -323,7 +323,7 @@ class ParseLogsTest(OERuntimeTestCase): | |||
323 | grep_output = check_output(cmd).decode('utf-8') | 323 | grep_output = check_output(cmd).decode('utf-8') |
324 | except: | 324 | except: |
325 | pass | 325 | pass |
326 | results[log.replace('target_logs/','')][xrez]=grep_output | 326 | results[log][xrez]=grep_output |
327 | 327 | ||
328 | return results | 328 | return results |
329 | 329 | ||