aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-23 22:49:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-25 10:42:56 +0000
commitec020699086cc56bfa37bab38065472da52b3d0f (patch)
tree9b3012e7bf8e45d5953ecdb65b31d144e1163a5f /scripts
parent9d2ec5970adfc906fcc4581528321a879953fd55 (diff)
downloadopenembedded-core-contrib-ec020699086cc56bfa37bab38065472da52b3d0f.tar.gz
openembedded-core-contrib-ec020699086cc56bfa37bab38065472da52b3d0f.tar.bz2
openembedded-core-contrib-ec020699086cc56bfa37bab38065472da52b3d0f.zip
resulttool/resultutils: Avoids tracebacks for missing logs
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/resulttool/resultutils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/resulttool/resultutils.py b/scripts/lib/resulttool/resultutils.py
index 06cceef7968..c8ccf1bcb64 100644
--- a/scripts/lib/resulttool/resultutils.py
+++ b/scripts/lib/resulttool/resultutils.py
@@ -61,7 +61,8 @@ def append_resultsdata(results, f, configmap=store_map):
del data[res]['result']['ptestresult.rawlogs']
if 'ptestresult.sections' in data[res]['result']:
for i in data[res]['result']['ptestresult.sections']:
- del data[res]['result']['ptestresult.sections'][i]['log']
+ if 'log' in data[res]['result']['ptestresult.sections'][i]:
+ del data[res]['result']['ptestresult.sections'][i]['log']
results[testpath][res] = data[res]
#