From 9d37162b4f3a74907ed3c67d8784e4ef0f830f3e Mon Sep 17 00:00:00 2001 From: velho Date: Mon, 19 Apr 2010 09:04:46 +0000 Subject: [PATCH 1/1] Cople with ctest 2.8 still compatible with previous versions (2.6.x). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7609 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- tools/tesh/colorize.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tesh/colorize.pl b/tools/tesh/colorize.pl index 247c433569..045ff68447 100755 --- a/tools/tesh/colorize.pl +++ b/tools/tesh/colorize.pl @@ -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 $_; -- 2.20.1