Francois Gouget : testbot/web: Colorize and link the JobDetails page's failure counts.
Module: tools Branch: master Commit: 626670bed80c5d98723702854112c2d6482f5751 URL: https://source.winehq.org/git/tools.git/?a=commit;h=626670bed80c5d9872370285... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Tue May 3 19:40:12 2022 +0200 testbot/web: Colorize and link the JobDetails page's failure counts. 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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- testbot/web/JobDetails.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testbot/web/JobDetails.pl b/testbot/web/JobDetails.pl index b0ef2a7..99c68bc 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); }
participants (1)
-
Alexandre Julliard