[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 3/6] sg-report-flight: Break colour of out $cell_html->() results



No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 sg-report-flight |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/sg-report-flight b/sg-report-flight
index 18a5afa..29b5ef6 100755
--- a/sg-report-flight
+++ b/sg-report-flight
@@ -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++;
             }
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.