diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-06-15 17:09:48 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-23 11:43:37 +0100 |
commit | 7beed75c97a78e945e44a55b28f0f463cd6c8dcd (patch) | |
tree | 3e827e30f5a9e006c186070ca878e2fa26df6881 /meta/lib/oeqa/core/threaded.py | |
parent | d7bc697534db911a3ce98537d772d87482a0f702 (diff) | |
download | openembedded-core-7beed75c97a78e945e44a55b28f0f463cd6c8dcd.tar.gz openembedded-core-7beed75c97a78e945e44a55b28f0f463cd6c8dcd.tar.bz2 openembedded-core-7beed75c97a78e945e44a55b28f0f463cd6c8dcd.zip |
oeqa/core/threaded: Don't assume that results exists on logDetails
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/core/threaded.py')
-rw-r--r-- | meta/lib/oeqa/core/threaded.py | 7 |
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): 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""" |