[OE-core] [PATCH 1/3] oeqa/core/threaded: Don't assume that results exists on logDetails

Aníbal Limón anibal.limon at linux.intel.com
Thu Jun 15 22:09:48 UTC 2017


Signed-off-by: Aníbal Limón <anibal.limon at linux.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"""
-- 
2.1.4




More information about the Openembedded-core mailing list