[PATCH] testbot/SpecialJobs: Don't create jobs if given no VM.

Francois Gouget fgouget at codeweavers.com
Fri Sep 27 06:03:24 CDT 2019


The jobs would have no task!

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/lib/WineTestBot/SpecialJobs.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testbot/lib/WineTestBot/SpecialJobs.pm b/testbot/lib/WineTestBot/SpecialJobs.pm
index d709e48f7..c3135671f 100644
--- a/testbot/lib/WineTestBot/SpecialJobs.pm
+++ b/testbot/lib/WineTestBot/SpecialJobs.pm
@@ -61,6 +61,7 @@ sub GetReconfigVMs($$)
 sub AddReconfigJob($$$)
 {
   my ($VMs, $VMKey, $VMType) = @_;
+  return undef if (!@$VMs);
 
   # First create a new job
   my $Jobs = CreateJobs();
@@ -138,6 +139,7 @@ sub GetWindowsTestVMs($$$)
 sub AddWindowsTestJob($$$$$)
 {
   my ($VMs, $VMKey, $Build, $BaseJob, $LatestBaseName) = @_;
+  return undef if (!@$VMs);
 
   # First create a new job
   my $Jobs = CreateJobs();
@@ -221,6 +223,7 @@ sub GetWineTestVMs($)
 sub AddWineTestJob($$)
 {
   my ($VMs, $VMKey) = @_;
+  return undef if (!@$VMs);
 
   # First create a new job
   my $Jobs = CreateJobs();
-- 
2.20.1




More information about the wine-devel mailing list