Fix colorizier thowing exception when a test fails

This failure in colorizier was hidding the actual error
in the tests. If we ran enough tests it also became difficult
to see which test had actually failed.

Fixes: bug 1183602

Change-Id: I806da8f13040b38258de7f3e0fa7b62700bdcead
This commit is contained in:
Michael Kerrin 2013-05-29 12:43:53 +00:00
parent db56c590e8
commit c182319039

View File

@ -232,6 +232,8 @@ class NovaTestResult(testtools.TestResult):
self._addResult(test, 'OK', 'green', '.', True)
def addFailure(self, test, err):
if test.id() == 'process-returncode':
return
super(NovaTestResult, self).addFailure(test, err)
self._addResult(test, 'FAIL', 'red', 'F', False)