Fix test summary and retries
There was an issue when tests crashed and weren't properly retried.
Change-Id: Id5ef828ecc9a8dc0f08c50183721db06e162e6c3
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
diff --git a/test/framework.py b/test/framework.py
index 74cc7ff..9ad9640 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -961,7 +961,7 @@
self.verbosity = verbosity
self.result_string = None
self.printer = TestCasePrinter()
- self.passed = 0
+ self.passed = []
def addSuccess(self, test):
"""
@@ -975,7 +975,7 @@
% (test.__class__.__name__,
test._testMethodName,
test._testMethodDoc))
- self.passed += 1
+ self.passed.append(test.id())
unittest.TestResult.addSuccess(self, test)
self.result_string = colorize("OK", GREEN)