Nikolay Sivov : testbot: Improve message for a single test failure.
Module: tools Branch: master Commit: 5515067284a5132e4ae4600b85c889b14e3e953b URL: http://source.winehq.org/git/tools.git/?a=commit;h=5515067284a5132e4ae4600b8... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Mon Mar 10 14:44:37 2014 +0400 testbot: Improve message for a single test failure. --- testbot/web/index.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testbot/web/index.pl b/testbot/web/index.pl index 69cd368..cfe966b 100644 --- a/testbot/web/index.pl +++ b/testbot/web/index.pl @@ -124,7 +124,8 @@ sub GenerateDataCell { $HTMLStatus = $Item->Status eq "completed" ? "" : "$HTMLStatus - "; my $class = $Failures ? "testfail" : "success"; - print "$HTMLStatus<span class='$class'>$Failures test failures</span>"; + my $s = $Failures == 1 ? "" : "s"; + print "$HTMLStatus<span class='$class'>$Failures test failure$s</span>"; } } else
participants (1)
-
Alexandre Julliard