From 98b79894517433fd22b487184376c5af1678dbe0 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 8 Aug 2013 15:21:21 -0400 Subject: [PATCH] style expected failures differently Signed-off-by: Jason Etheridge --- qa/test_output.css | 1 + qa/test_output_filter.pl | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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/) { -- 2.11.0