poor man method of making exceptions for errors
authorJason Etheridge <jason@esilibrary.com>
Thu, 10 Oct 2013 23:41:26 +0000 (19:41 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 10 Oct 2013 23:41:26 +0000 (19:41 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
qa/test_output_webifier.pl

index 6a38254..47e66b9 100755 (executable)
@@ -29,9 +29,10 @@ while (my $line = <>) {
         $evergreen_tip = $1;
     }
     if ($line =~ /_\.-~= (.*)$/) {
+        $prev_subpage = $subpage;
         $subpage = $1;
         $state = 'outputting';
-        print_pass_or_fail();
+        print_pass_or_fail($prev_subpage);
         $error_count = 0;
         $subpage_count++;
         print MAIN_PAGE qq^\n<li><a href="test.$subpage_count.html">$subpage</a>^;
@@ -134,7 +135,11 @@ sub html_footer {
 }
 
 sub print_pass_or_fail {
-    if ($error_count) {
+    my $subpage = shift;
+    my $exception = {}; # keyed on subpage, value = # of expected errors
+    $exception{'Installing Evergreen pre-requisites'} = 3;
+    #print "subpage = <$subpage> error_count = $error_count\n";
+    if ($error_count && $error_count > $exception{$subpage} ) {
         print MAIN_PAGE ' - <span class="fail">Failed</span>';
         print PASS_FAIL "Failed\n";
     } else {