summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-12-18 16:52:30 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-12-18 16:52:30 +1000
commit8d7145779bf0c7f4659b212bac1d006536ea59bd (patch)
tree91493330f25a7a53553ffb6541a632c45044941e
parentbded337617cb6bca4f6719b0cc8fa293376d3f70 (diff)
registry: colour unknown tests green so they stick out a bit
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rwxr-xr-xregistry/xit-bug-registry3
1 files changed, 3 insertions, 0 deletions
diff --git a/registry/xit-bug-registry b/registry/xit-bug-registry
index 0b591fa..8e0856c 100755
--- a/registry/xit-bug-registry
+++ b/registry/xit-bug-registry
@@ -73,11 +73,13 @@ def str2bool(val):
class termcolors:
DEFAULT = '\033[0m'
RED = '\033[31m'
+ GREEN = '\033[32m'
@classmethod
def disable(self):
self.DEFAULT = ''
self.RED = ''
+ self.GREEN = ''
class XITTestRegistry:
"""Central class keeping a set of test cases and their results"""
@@ -558,6 +560,7 @@ def verify_one_result(test, result, format_str):
else:
expected_status = ""
status_match = "??"
+ color = termcolors.GREEN
print color + format_str.format(status_match, result.suite, result.name, str(result.status).lower(), expected_status) + termcolors.DEFAULT