[Tools 3/6] testbot: Tweak ScheduleJobs() to filter out disabled VMs as we won't be running jobs on them.

Francois Gouget fgouget at codeweavers.com
Tue Mar 26 05:47:35 CDT 2013


---
 testbot/lib/WineTestBot/Jobs.pm |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/testbot/lib/WineTestBot/Jobs.pm b/testbot/lib/WineTestBot/Jobs.pm
index c73dea1..61ef113 100644
--- a/testbot/lib/WineTestBot/Jobs.pm
+++ b/testbot/lib/WineTestBot/Jobs.pm
@@ -531,7 +531,10 @@ sub ScheduleJobs()
   # we should check if there are VMs to revert
 
   my %Hosts;
-  foreach my $VM (@{CreateVMs()->GetItems()})
+  my $VMs = CreateVMs();
+  $VMs->FilterEnabledRole();
+  $VMs->FilterEnabledStatus();
+  foreach my $VM (@{$VMs->GetItems()})
   {
     my $Host = $VM->GetHost();
     $Hosts{$Host}->{$VM->VirtURI} = 1;
-- 
1.7.10.4




More information about the wine-patches mailing list