]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
sg-report-flight: Break colour of out $cell_html->() results
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 1 May 2015 13:40:07 +0000 (14:40 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 6 May 2015 23:49:27 +0000 (00:49 +0100)
No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
sg-report-flight

index 18a5afa766734b6cf3097f48d49fcabc86dadf1b..29b5ef6be42afe9b18fbe3e8960c1e62cf559da1 100755 (executable)
@@ -970,8 +970,8 @@ END
                ? ('#ff8888',400)
                : ('#ffff00',250);
        }
-       my $h = " bgcolor=\"$bgc\">";
-       $h .= "<a href=\"".encode_entities($s->{job}).
+       my $ch = "bgcolor=\"$bgc\"";
+       my $h = "<a href=\"".encode_entities($s->{job}).
            "/$s->{stepno}.".encode_entities($s->{step}).".log\">";
        #print H "[$s->{stepno}] ";
        $h .= encode_entities($sum_core);
@@ -980,7 +980,7 @@ END
            $h .= " <a href=\"../$sum_flight/\">".
                displayflightnum($sum_flight)."</a>";
        }
-       return ($h,$priority);
+       return ($h,$priority,$ch);
     };
 
     foreach my $col (@cols) {
@@ -992,7 +992,7 @@ END
            next if $this[1] < $worst[1];
            @worst=@this;
        }
-        print H "<td ",$worst[0],"</td>";
+       print H "<td ",$worst[2],">",$worst[0],"</td>";
     }
     print H "\n";
     # Create a gutter row after the headers.
@@ -1038,8 +1038,8 @@ END
             if ($ei) {
                 $deferred_cells->(1);
                 my $s= $ei->{Step};
-               my ($h,$priority) = $cell_html->($ei);
-                print H "<td", $h, "</td>";
+               my ($h,$priority,$ch) = $cell_html->($ei);
+                print H "<td ",$ch,">",$h,"</td>";
             } else {
                 $ndeferred++;
             }