diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-06-15 01:49:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-06-15 01:49:03 +0000 |
commit | 644d4c54bab9939da3ef2b1655092c7e4981f57d (patch) | |
tree | aa77fc5c8a5eb5b847ec390ce3d25f5b8ea210fa /functest/core | |
parent | 6049af70807987e124ba0cf4f05ee16fe89b88db (diff) | |
parent | 088ac89c10a1a69fdb14dc13280dacd2830a7d29 (diff) |
Merge "Update Suite details pushed to DB"
Diffstat (limited to 'functest/core')
-rw-r--r-- | functest/core/unit.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/functest/core/unit.py b/functest/core/unit.py index 515a2080..61b5a58d 100644 --- a/functest/core/unit.py +++ b/functest/core/unit.py @@ -74,8 +74,11 @@ class Suite(testcase.TestCase): stream=stream, verbosity=2).run(self.suite) self.__logger.debug("\n\n%s", stream.getvalue()) self.stop_time = time.time() - self.details = {"failures": result.failures, - "errors": result.errors} + self.details = { + "testsRun": result.testsRun, + "failures": len(result.failures), + "errors": len(result.errors), + "stream": stream.getvalue()} self.result = 100 * ( (result.testsRun - (len(result.failures) + len(result.errors))) / |