[tools] testbot/TestWTBS: Adjust the TestUnits check to the wine test/module missions.

Francois Gouget fgouget at codeweavers.com
Mon Mar 1 09:27:21 CST 2021


Don't complain that the test=test or test=module case is missing test
units if there was no mission of that type.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/tests/TestWTBS | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testbot/tests/TestWTBS b/testbot/tests/TestWTBS
index edf097de2..04487c4bc 100755
--- a/testbot/tests/TestWTBS
+++ b/testbot/tests/TestWTBS
@@ -882,6 +882,7 @@ sub CheckTask($$$$)
         $MissionType .= ":$Test";
       }
       $ReportTypes{$ReportName} = $MissionType;
+      $TestUnits->{$MissionType} ||= {};
     }
   }
   my $TestType = ($TaskType eq "wine" and !$IsTestTask) ?
@@ -1191,6 +1192,9 @@ sub CheckJobTree($;$)
       my @MissionTypes = $Type eq "wine" ? ("wine:test", "wine:module") : ($Type);
       foreach my $MissionType (@MissionTypes)
       {
+        # Skip if there was no task running this type of mission
+        next if (!$TestUnits->{$MissionType});
+
         my $MissionInfo = $TestInfo->{$MissionType};
         next if (!CheckValue($MissionInfo->{TestUnits}));
 
-- 
2.20.1




More information about the wine-devel mailing list