Francois Gouget : testbot/SpecialJobs: Don't create jobs if given no VM.

Alexandre Julliard julliard at winehq.org
Fri Sep 27 12:48:56 CDT 2019


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Fri Sep 27 13:03:24 2019 +0200

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

The jobs would have no task!

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

---

 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 d709e48..c313567 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();




More information about the wine-cvs mailing list