Francois Gouget : testbot/web: Colorize and link the JobDetails page's failure counts.
Alexandre Julliard
julliard at winehq.org
Tue May 3 15:18:32 CDT 2022
Module: tools
Branch: master
Commit: 626670bed80c5d98723702854112c2d6482f5751
URL: https://source.winehq.org/git/tools.git/?a=commit;h=626670bed80c5d98723702854112c2d6482f5751
Author: Francois Gouget <fgouget at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);
}
More information about the wine-cvs
mailing list