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-25 23:12:07 +0000
commitd5d62b31b192b88c6a829099b74bfb30583b066e (patch)
tree51654de852950e3e1dd9a8b30e72d0b1a30b5cb0
parente4195565d2a50046d4378c97f7a593c41bed51bd (diff)
downloadopenembedded-core-contrib-d5d62b31b192b88c6a829099b74bfb30583b066e.tar.gz
openembedded-core-contrib-d5d62b31b192b88c6a829099b74bfb30583b066e.tar.bz2
openembedded-core-contrib-d5d62b31b192b88c6a829099b74bfb30583b066e.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]
#