From: Jason Etheridge <jason@esilibrary.com> Date: Thu, 8 Aug 2013 19:21:21 +0000 (-0400) Subject: style expected failures differently X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=98b79894517433fd22b487184376c5af1678dbe0;p=working%2Frandom.git style expected failures differently Signed-off-by: Jason Etheridge <jason@esilibrary.com> --- diff --git a/qa/test_output.css b/qa/test_output.css index e9f3b204e..c70a5bea8 100644 --- a/qa/test_output.css +++ b/qa/test_output.css @@ -2,6 +2,7 @@ .comment { color: black; } .ok { color: green; font-weight: bold; } .error { color: red; font-weight: bold; } +.todo { color: brown; font-weight: bold; } .notok { color: red; font-weight: bold; } .pass { color: green; font-weight: bold; } .fail { color: red; font-weight: bold; } diff --git a/qa/test_output_filter.pl b/qa/test_output_filter.pl index fdf13eef5..98f8e4b85 100755 --- a/qa/test_output_filter.pl +++ b/qa/test_output_filter.pl @@ -26,7 +26,7 @@ while (my $line = <>) { $class .= 'ok '; } $class .= 'error ' if ($line =~ /^err/i); - if ($line =~ /^not ok/ + if (($line =~ /^not ok/ && !($line =~ /TODO/)) || $line =~ /\. not ok/ || $line =~ /\* ERROR/ || $line =~ /\* WARNING/ @@ -34,6 +34,9 @@ while (my $line = <>) { $class .= 'notok '; $error_count++; } + if ($line =~ /^not ok/ && $line =~ /TODO/) { + $class .= 'todo '; + } $class .= 'result ' if ($line =~ /^Result:/); $class .= 'pass ' if ($line =~ /^Result: PASS/); if ($line =~ /^Result: FAIL/) {