summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2018-08-13 16:54:37 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-14 11:36:22 +0100
commitdf3a2e21648d6b649ebda7e6032afbd63c939f2b (patch)
treeab85ac43c25046f352285d31c98933eef8f584f6
parent95162276b169b84d61eaa73416cf0838a0a8a8bd (diff)
downloadopenembedded-core-contrib-df3a2e21648d6b649ebda7e6032afbd63c939f2b.tar.gz
openembedded-core-contrib-df3a2e21648d6b649ebda7e6032afbd63c939f2b.tar.bz2
openembedded-core-contrib-df3a2e21648d6b649ebda7e6032afbd63c939f2b.zip
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. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/runtime/cases/parselogs.py4
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):
pass
if result is not None:
- results[log.replace('target_logs/','')] = {}
+ results[log] = {}
rez = result.splitlines()
for xrez in rez:
@@ -323,7 +323,7 @@ class ParseLogsTest(OERuntimeTestCase):
grep_output = check_output(cmd).decode('utf-8')
except:
pass
- results[log.replace('target_logs/','')][xrez]=grep_output
+ results[log][xrez]=grep_output
return results