Francois Gouget : testbot: Better identify when multiple locales are tested.

Alexandre Julliard julliard at winehq.org
Thu Nov 29 15:01:41 CST 2018


Module: tools
Branch: master
Commit: 3c518bbb1ce891083e970f4ea75e9b137cf66b55
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=3c518bbb1ce891083e970f4ea75e9b137cf66b55

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Nov 29 11:50:28 2018 +0100

testbot: Better identify when multiple locales are tested.

Previously testing the default English locale and one other locale would
only show the latter in the mission description.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/lib/WineTestBot/Missions.pm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/testbot/lib/WineTestBot/Missions.pm b/testbot/lib/WineTestBot/Missions.pm
index 18d4f5e..2662340 100644
--- a/testbot/lib/WineTestBot/Missions.pm
+++ b/testbot/lib/WineTestBot/Missions.pm
@@ -125,14 +125,16 @@ sub GetTaskMissionDescription($$)
     my $Lang;
     foreach my $Mission (@{$TaskMission->{Missions}})
     {
-      next if (!$Mission->{lang});
-      if (defined $Lang)
+      if (!defined $Lang)
+      {
+        $Lang = $Mission->{lang} || "";
+      }
+      elsif ($Lang ne ($Mission->{lang} || ""))
       {
         $Description .= " + Locales";
         $Lang = undef;
         last;
       }
-      $Lang = $Mission->{lang};
     }
     $Description .= " ". LocaleName($Lang) if ($Lang);
     $Description .= " tests";




More information about the wine-cvs mailing list