summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael Kerrin <michael.kerrin@hp.com>2013-05-29 12:43:53 +0000
committerMichael Kerrin <michael.kerrin@hp.com>2013-05-29 13:53:22 +0000
commitc182319039822346e9bc3f31a796fd45dcc35450 (patch)
tree9850195c47de3c61f5c55b2bba2f9fb12a20fbc1 /tools
parentdb56c590e8b0a50e0fc2ee5bf186057a66c90e2e (diff)
downloadnova-c182319039822346e9bc3f31a796fd45dcc35450.tar.gz
nova-c182319039822346e9bc3f31a796fd45dcc35450.tar.xz
nova-c182319039822346e9bc3f31a796fd45dcc35450.zip
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/colorizer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/colorizer.py b/tools/colorizer.py
index aa7427e40..a49abb141 100755
--- a/tools/colorizer.py
+++ b/tools/colorizer.py
@@ -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)