When there are a lot of tasks this makes it easier to identify and go to those that have failures.
Signed-off-by: Francois Gouget fgouget@codeweavers.com --- This also makes the presentation more consistent with the main index page. --- testbot/web/JobDetails.pl | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/testbot/web/JobDetails.pl b/testbot/web/JobDetails.pl index b0ef2a733..99c68bcb8 100644 --- a/testbot/web/JobDetails.pl +++ b/testbot/web/JobDetails.pl @@ -132,6 +132,13 @@ sub GenerateDataView($$$) GenerateTipDateTime($StepTask->Ended, DurationToString($Duration)); return; } + if ($PropertyName eq "TestFailures" and defined $StepTask->TestFailures) + { + my $class = $StepTask->TestFailures ? "testfail" : "success"; + print "<a href='#k", $StepTask->GetKey(), "'><span class='$class'>", + $StepTask->TestFailures, "</span></a>"; + return; + } $self->SUPER::GenerateDataView($Row, $Col); }