Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cople with ctest 2.8 still compatible with previous versions (2.6.x).
authorvelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 19 Apr 2010 09:04:46 +0000 (09:04 +0000)
committervelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 19 Apr 2010 09:04:46 +0000 (09:04 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7609 48e7efb5-ca39-0410-a469-dd3cf9ba447f

tools/tesh/colorize.pl

index 247c433..045ff68 100755 (executable)
@@ -3,9 +3,9 @@ use Term::ANSIColor qw{:constants};
 $Term::ANSIColor::AUTORESET = 1;
 
 while(<>){
-    if($_ =~ m/^[-]\s.*/){
+    if($_ =~ m/^(\d+\:\s)?[-]\s.*/){
        print BOLD RED $_;
-    }elsif ($_ =~ m/^[+]\s.*/){
+    }elsif ($_ =~ m/^(\d+\:\s)?[+]\s.*/){
        print BOLD GREEN $_;
     }else{
        print BOLD $_;