summaryrefslogtreecommitdiffstats
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-03-24 16:53:08 +0000
commitfaacf35d748067fd17d169c09bc2759606e6e819 (patch)
tree7037fdb0d76d87573b241b808511b25a89a59258
parentb4513e75f746a0989b09ee53cb85e489d41e5783 (diff)
downloadopenembedded-core-faacf35d748067fd17d169c09bc2759606e6e819.tar.gz
openembedded-core-faacf35d748067fd17d169c09bc2759606e6e819.tar.bz2
openembedded-core-faacf35d748067fd17d169c09bc2759606e6e819.zip
resulttool/resultutils: Avoids tracebacks for missing logs
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 06cceef796..c8ccf1bcb6 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]
#