diff options
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/core/utils/concurrencytest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oeqa/core/utils/concurrencytest.py b/meta/lib/oeqa/core/utils/concurrencytest.py index 161a2f6e90..fe6ea29525 100644 --- a/meta/lib/oeqa/core/utils/concurrencytest.py +++ b/meta/lib/oeqa/core/utils/concurrencytest.py | |||
| @@ -57,6 +57,7 @@ class BBThreadsafeForwardingResult(ThreadsafeForwardingResult): | |||
| 57 | self.outputbuf = output | 57 | self.outputbuf = output |
| 58 | self.finalresult = finalresult | 58 | self.finalresult = finalresult |
| 59 | self.finalresult.buffer = True | 59 | self.finalresult.buffer = True |
| 60 | self.target = target | ||
| 60 | 61 | ||
| 61 | def _add_result_with_semaphore(self, method, test, *args, **kwargs): | 62 | def _add_result_with_semaphore(self, method, test, *args, **kwargs): |
| 62 | self.semaphore.acquire() | 63 | self.semaphore.acquire() |
| @@ -65,13 +66,14 @@ class BBThreadsafeForwardingResult(ThreadsafeForwardingResult): | |||
| 65 | self.result.starttime[test.id()] = self._test_start.timestamp() | 66 | self.result.starttime[test.id()] = self._test_start.timestamp() |
| 66 | self.result.threadprogress[self.threadnum].append(test.id()) | 67 | self.result.threadprogress[self.threadnum].append(test.id()) |
| 67 | totalprogress = sum(len(x) for x in self.result.threadprogress.values()) | 68 | totalprogress = sum(len(x) for x in self.result.threadprogress.values()) |
| 68 | self.result.progressinfo[test.id()] = "%s: %s/%s %s/%s (%ss) (%s)" % ( | 69 | self.result.progressinfo[test.id()] = "%s: %s/%s %s/%s (%ss) (%s failed) (%s)" % ( |
| 69 | self.threadnum, | 70 | self.threadnum, |
| 70 | len(self.result.threadprogress[self.threadnum]), | 71 | len(self.result.threadprogress[self.threadnum]), |
| 71 | self.totalinprocess, | 72 | self.totalinprocess, |
| 72 | totalprogress, | 73 | totalprogress, |
| 73 | self.totaltests, | 74 | self.totaltests, |
| 74 | "{0:.2f}".format(time.time()-self._test_start.timestamp()), | 75 | "{0:.2f}".format(time.time()-self._test_start.timestamp()), |
| 76 | self.target.failed_tests, | ||
| 75 | test.id()) | 77 | test.id()) |
| 76 | finally: | 78 | finally: |
| 77 | self.semaphore.release() | 79 | self.semaphore.release() |
