colorize some of the output from settings-tester
authorJason Etheridge <jason@esilibrary.com>
Thu, 8 Aug 2013 19:11:50 +0000 (15:11 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 8 Aug 2013 19:11:50 +0000 (15:11 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
qa/test_output_filter.pl

index cbe479c..fdf13ee 100755 (executable)
@@ -19,12 +19,17 @@ while (my $line = <>) {
             if ($line =~ /^ok/
                 || $line =~ /\. ok/
                 || $line =~ /^PASS/
+                || $line =~ /\* OK/
+                || $line =~ /\* Jabber successfully connected/
+                || $line =~ /\* Database has the expected server encoding /
             ) {
                 $class .= 'ok ';
             }
             $class .= 'error ' if ($line =~ /^err/i); 
             if ($line =~ /^not ok/
                 || $line =~ /\. not ok/
+                || $line =~ /\* ERROR/
+                || $line =~ /\* WARNING/
             ) {
                 $class .= 'notok ';
                 $error_count++;