From: Richard Purdie Date: Sat, 23 Feb 2019 22:49:11 +0000 (+0000) Subject: resulttool/resultutils: Avoids tracebacks for missing logs X-Git-Tag: 2018-10.4-thud~186 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=faacf35d748067fd17d169c09bc2759606e6e819;p=openembedded-core.git resulttool/resultutils: Avoids tracebacks for missing logs Signed-off-by: Richard Purdie --- 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] #