summaryrefslogtreecommitdiffstats
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-03-26 15:38:23 +0000
commit094b6ea1fc2e15af6829049101fc6e8328e4bba8 (patch)
treeaf2f64449aca8cc86dacdbbe4f35568da54ded95 /scripts
parent10b6fbfb8a3a9c0ba2f323658bc3387051a77ca9 (diff)
downloadpoky-094b6ea1fc2e15af6829049101fc6e8328e4bba8.tar.gz
poky-094b6ea1fc2e15af6829049101fc6e8328e4bba8.tar.bz2
poky-094b6ea1fc2e15af6829049101fc6e8328e4bba8.zip
resulttool/resultutils: Avoids tracebacks for missing logs
(From OE-Core rev: faacf35d748067fd17d169c09bc2759606e6e819) 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 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]
#