summaryrefslogtreecommitdiffstats
path: root/scripts/lib/resulttool/resultutils.py
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:43:06 +0000
commit49b134f30ac50522ef3c9b3b6334b6bf3ca4545d (patch)
treec4d3b0f7faf0f507376736bdb27359ad1c9153f4 /scripts/lib/resulttool/resultutils.py
parent5855ff75a5a41b0a52b408719615372cdd34c335 (diff)
downloadpoky-49b134f30ac50522ef3c9b3b6334b6bf3ca4545d.tar.gz
resulttool/resultutils: Avoids tracebacks for missing logs
(From OE-Core rev: ec020699086cc56bfa37bab38065472da52b3d0f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/resulttool/resultutils.py')
-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):
61 del data[res]['result']['ptestresult.rawlogs'] 61 del data[res]['result']['ptestresult.rawlogs']
62 if 'ptestresult.sections' in data[res]['result']: 62 if 'ptestresult.sections' in data[res]['result']:
63 for i in data[res]['result']['ptestresult.sections']: 63 for i in data[res]['result']['ptestresult.sections']:
64 del data[res]['result']['ptestresult.sections'][i]['log'] 64 if 'log' in data[res]['result']['ptestresult.sections'][i]:
65 del data[res]['result']['ptestresult.sections'][i]['log']
65 results[testpath][res] = data[res] 66 results[testpath][res] = data[res]
66 67
67# 68#