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>
This commit is contained in:
Aníbal Limón 2017-06-15 17:09:48 -05:00 committed by Richard Purdie
parent ab0780dfea
commit aa6e333de9

View File

@ -185,6 +185,7 @@ class OETestResultThreaded(object):
self.tc.logger.info(msg)
def logDetails(self):
if list(self._results):
tid = list(self._results)[0]
result = self._results[tid]['result']
result.logDetails()