style expected failures differently
authorJason Etheridge <jason@esilibrary.com>
Thu, 8 Aug 2013 19:21:21 +0000 (15:21 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 8 Aug 2013 19:21:21 +0000 (15:21 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
qa/test_output.css
qa/test_output_filter.pl

index e9f3b20..c70a5be 100644 (file)
@@ -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; }
index fdf13ee..98f8e4b 100755 (executable)
@@ -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/) {