summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-06-15 17:09:48 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-23 11:44:12 +0100
commitaa6e333de945e1728739718e12a3e2ffdd5fbace (patch)
tree2f9689af17a0fb1aa18a8414e76db1bfa6ccc57a /meta/lib/oeqa
parentab0780dfea9f0202ded3f2692633926aea35a5e6 (diff)
downloadpoky-aa6e333de945e1728739718e12a3e2ffdd5fbace.tar.gz
oeqa/core/threaded: Don't assume that results exists on logDetails
(From OE-Core rev: 7beed75c97a78e945e44a55b28f0f463cd6c8dcd) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/core/threaded.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/lib/oeqa/core/threaded.py b/meta/lib/oeqa/core/threaded.py
index c6058a3e52..2cafe03a21 100644
--- a/meta/lib/oeqa/core/threaded.py
+++ b/meta/lib/oeqa/core/threaded.py
@@ -185,9 +185,10 @@ class OETestResultThreaded(object):
185 self.tc.logger.info(msg) 185 self.tc.logger.info(msg)
186 186
187 def logDetails(self): 187 def logDetails(self):
188 tid = list(self._results)[0] 188 if list(self._results):
189 result = self._results[tid]['result'] 189 tid = list(self._results)[0]
190 result.logDetails() 190 result = self._results[tid]['result']
191 result.logDetails()
191 192
192class _Worker(threading.Thread): 193class _Worker(threading.Thread):
193 """Thread executing tasks from a given tasks queue""" 194 """Thread executing tasks from a given tasks queue"""