Fix logging to file and summary for crashed tests
Logging was not being logged to log.txt Crashed tests were not reported properly when running tests in one process Change-Id: Ica2d703d88351cc8a94bad86764ae4376dc79590 Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
This commit is contained in:

committed by
Dave Barach

parent
ffb3813dd3
commit
0219b8dfbf
@ -957,6 +957,7 @@ class VppTestResult(unittest.TestResult):
|
||||
self.verbosity = verbosity
|
||||
self.result_string = None
|
||||
self.printer = TestCasePrinter()
|
||||
self.passed = 0
|
||||
|
||||
def addSuccess(self, test):
|
||||
"""
|
||||
@ -970,6 +971,7 @@ class VppTestResult(unittest.TestResult):
|
||||
% (test.__class__.__name__,
|
||||
test._testMethodName,
|
||||
test._testMethodDoc))
|
||||
self.passed += 1
|
||||
unittest.TestResult.addSuccess(self, test)
|
||||
self.result_string = colorize("OK", GREEN)
|
||||
|
||||
|
Reference in New Issue
Block a user