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@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}));