[oe-commits] [openembedded-core] 12/43: oeqa/core/threaded: Don't assume that results exists on logDetails

git at git.openembedded.org git at git.openembedded.org
Fri Jun 23 10:44:51 UTC 2017


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

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

commit 7beed75c97a78e945e44a55b28f0f463cd6c8dcd
Author: Aníbal Limón <anibal.limon at linux.intel.com>
AuthorDate: Thu Jun 15 17:09:48 2017 -0500

    oeqa/core/threaded: Don't assume that results exists on logDetails
    
    Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/lib/oeqa/core/threaded.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/meta/lib/oeqa/core/threaded.py b/meta/lib/oeqa/core/threaded.py
index c6058a3..2cafe03 100644
--- a/meta/lib/oeqa/core/threaded.py
+++ b/meta/lib/oeqa/core/threaded.py
@@ -185,9 +185,10 @@ class OETestResultThreaded(object):
         self.tc.logger.info(msg)
 
     def logDetails(self):
-        tid = list(self._results)[0]
-        result = self._results[tid]['result']
-        result.logDetails()
+        if list(self._results):
+            tid = list(self._results)[0]
+            result = self._results[tid]['result']
+            result.logDetails()
 
 class _Worker(threading.Thread):
     """Thread executing tasks from a given tasks queue"""

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


More information about the Openembedded-commits mailing list