Nikolay Sivov : testbot: Improve message for a single test failure.

Alexandre Julliard julliard at winehq.org
Tue Mar 11 09:24:52 CDT 2014


Module: tools
Branch: master
Commit: 5515067284a5132e4ae4600b85c889b14e3e953b
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=5515067284a5132e4ae4600b85c889b14e3e953b

Author: Nikolay Sivov <nsivov at 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




More information about the wine-cvs mailing list