Module: tools Branch: master Commit: 18a831b4b6d4c34aad23a5a72a23f7cdbbfa9ae1 URL: https://gitlab.winehq.org/winehq/tools/-/commit/18a831b4b6d4c34aad23a5a72a23...
Author: Francois Gouget fgouget@codeweavers.com Date: Tue Jun 20 14:53:54 2023 +0200
testbot/web: Tweak the color of warning counts.
This minimizes the risk of confusion with the failures column.
---
testbot/web/JobDetails.pl | 2 +- testbot/web/WineTestBot.css | 1 + testbot/web/index.pl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/testbot/web/JobDetails.pl b/testbot/web/JobDetails.pl index c2b7cf5c..008595f3 100644 --- a/testbot/web/JobDetails.pl +++ b/testbot/web/JobDetails.pl @@ -161,7 +161,7 @@ sub GenerateDataView($$$) my $class = $StepTask->NewWarnings ? "testfail" : "success"; print "<span class='$class'>", $StepTask->NewWarnings, "</span> / "; } - my $class = $StepTask->Warnings ? "testfail" : "success"; + my $class = $StepTask->Warnings ? "testwarn" : "success"; print "<span class='$class'>", $StepTask->Warnings, "</span></a>"; return; } diff --git a/testbot/web/WineTestBot.css b/testbot/web/WineTestBot.css index cff299a7..0250f68d 100644 --- a/testbot/web/WineTestBot.css +++ b/testbot/web/WineTestBot.css @@ -387,6 +387,7 @@ pre .badpatch { color: red; } .badbuild { color: red; } .testfail { color: red; } +.testwarn { color: #ff9300; } .boterror { color: #e55600; } .canceled { color: black; }
diff --git a/testbot/web/index.pl b/testbot/web/index.pl index 087b80fa..a2bd5246 100644 --- a/testbot/web/index.pl +++ b/testbot/web/index.pl @@ -130,7 +130,7 @@ sub GenerateDataView($$$) my $class = $JobInfo->{NewWarnings} ? "testfail" : "success"; print "<span class='$class'>$JobInfo->{NewWarnings}</span> / "; } - my $class = $JobInfo->{Warnings} ? "testfail" : "success"; + my $class = $JobInfo->{Warnings} ? "testwarn" : "success"; print "<span class='$class'>$JobInfo->{Warnings}</span></a>"; } }