From: Richard Purdie Date: Sat, 23 Feb 2019 22:49:11 +0000 (+0000) Subject: resulttool/resultutils: Avoids tracebacks for missing logs X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~15276 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec020699086cc56bfa37bab38065472da52b3d0f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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 06cceef7968..c8ccf1bcb64 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] #