[oe-commits] [openembedded-core] 03/38: resulttool/resultutils: Avoids tracebacks for missing logs

git at git.openembedded.org git at git.openembedded.org
Mon Feb 25 10:44:36 UTC 2019

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit ec020699086cc56bfa37bab38065472da52b3d0f
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Sat Feb 23 22:49:11 2019 +0000

    resulttool/resultutils: Avoids tracebacks for missing logs
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
 scripts/lib/resulttool/resultutils.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/resulttool/resultutils.py b/scripts/lib/resulttool/resultutils.py
index 06cceef..c8ccf1b 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]

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list