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

git at git.openembedded.org git at git.openembedded.org
Sun Mar 24 16:54:32 UTC 2019


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

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

commit e469b51739c3ca176f0ba03075219c5abb1e63f6
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