diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-22 23:12:43 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-23 07:50:00 +0100 |
| commit | b45f3ecc00e04b22ce5d98f996e3ece00f58d8a1 (patch) | |
| tree | 0a44402b135d38e3594429c1690b9cb3c4b71da1 /meta/lib/oeqa/core | |
| parent | af87cc83cf4c02ce59e8896f1148a31603e914a7 (diff) | |
| download | poky-b45f3ecc00e04b22ce5d98f996e3ece00f58d8a1.tar.gz | |
oeqa/runner: Print any errors/failures early
Its a pain to have to wait until oe-selftest finishes to see the
failures for example.
(From OE-Core rev: 4c499a1b10a0c2647b6a753b8f9cd934ae4ad0da)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core')
| -rw-r--r-- | meta/lib/oeqa/core/runner.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/runner.py b/meta/lib/oeqa/core/runner.py index 73f41d9f1c..eeb625b7ff 100644 --- a/meta/lib/oeqa/core/runner.py +++ b/meta/lib/oeqa/core/runner.py | |||
| @@ -56,6 +56,14 @@ class OETestResult(_TestResult): | |||
| 56 | if test.id() in self.progressinfo: | 56 | if test.id() in self.progressinfo: |
| 57 | self.tc.logger.info(self.progressinfo[test.id()]) | 57 | self.tc.logger.info(self.progressinfo[test.id()]) |
| 58 | 58 | ||
| 59 | # Print the errors/failures early to aid/speed debugging, its a pain | ||
| 60 | # to wait until selftest finishes to see them. | ||
| 61 | for t in ['failures', 'errors', 'skipped', 'expectedFailures']: | ||
| 62 | for (scase, msg) in getattr(self, t): | ||
| 63 | if test.id() == scase.id(): | ||
| 64 | self.tc.logger.info(str(msg)) | ||
| 65 | break | ||
| 66 | |||
| 59 | def logSummary(self, component, context_msg=''): | 67 | def logSummary(self, component, context_msg=''): |
| 60 | elapsed_time = self.tc._run_end_time - self.tc._run_start_time | 68 | elapsed_time = self.tc._run_end_time - self.tc._run_start_time |
| 61 | self.tc.logger.info("SUMMARY:") | 69 | self.tc.logger.info("SUMMARY:") |
