[gnome-code-assistance] [tests] More colorful output



commit 0eb177df0d49fa4034ef4031f064e1b1e5ada8c7
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Thu Nov 14 19:31:00 2013 +0100

    [tests] More colorful output

 tests/service |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/service b/tests/service
index 28a1093..d89ba40 100755
--- a/tests/service
+++ b/tests/service
@@ -171,10 +171,10 @@ def test(name):
 
                     cleart = self.ansire.sub('', (self.enter_text + rettext))
 
-                    print(' {0} {1}'.format('.' * (console_width - len(cleart) - 2), rettext))
+                    print(' \033[30m{0}\033[0m {1}'.format('.' * (console_width - len(cleart) - 2), rettext))
 
                     if not value is None:
-                        print('      {0}'.format(''.join(traceback.format_tb(tb)).replace("\n", '\n      ')))
+                        print('      
\033[33;1m{0}\033[0m'.format(''.join(traceback.format_tb(tb)).replace("\n", '\n      ')))
 
                     return True
 
@@ -362,7 +362,7 @@ class ServiceTest:
             raise ValueError('Do not know how to parse diagnostic')
 
     def run(self):
-        print('\nTESTING {0}'.format(self.name))
+        print('\n\033[1mTESTING {0}\033[0m'.format(self.name))
 
         # Test for default interfaces and paths
         with self.test_object('/') as t:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]