Francois Gouget : testbot: Ignore process deadlines for the disabled VMs.
Alexandre Julliard
julliard at winehq.org
Tue Jun 12 17:35:20 CDT 2018
Module: tools
Branch: master
Commit: 27bfe1cf8dbb0836a1c77844b7bf7dc065a938fc
URL: https://source.winehq.org/git/tools.git/?a=commit;h=27bfe1cf8dbb0836a1c77844b7bf7dc065a938fc
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Tue Jun 12 11:49:05 2018 +0200
testbot: Ignore process deadlines for the disabled VMs.
Disabled VMs should probably not have deadlines but it makes sense to
ignore them anyway.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/lib/WineTestBot/Engine/Scheduler.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/testbot/lib/WineTestBot/Engine/Scheduler.pm b/testbot/lib/WineTestBot/Engine/Scheduler.pm
index 85bc0f3..159b10c 100644
--- a/testbot/lib/WineTestBot/Engine/Scheduler.pm
+++ b/testbot/lib/WineTestBot/Engine/Scheduler.pm
@@ -1010,7 +1010,9 @@ sub ScheduleJobs()
# Reschedule at the latest when the next task times out
my $FirstDeadline;
- foreach my $VM (@{$Sched->{VMs}->GetItems()})
+ my $VMs = $Sched->{VMs}->Clone();
+ $VMs->FilterEnabledRole();
+ foreach my $VM (@{$VMs->GetItems()})
{
if (defined $VM->ChildDeadline and
(!defined $FirstDeadline or $VM->ChildDeadline < $FirstDeadline))
More information about the wine-cvs
mailing list