[PATCH] testbot/Engine: Don't override $MaxVMsWhenIdle == 0.

Francois Gouget fgouget at codeweavers.com
Fri Dec 15 00:56:10 CST 2017


It should only be set to the default if left undefined.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/bin/Engine.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testbot/bin/Engine.pl b/testbot/bin/Engine.pl
index ad492f61..dfe266f1 100755
--- a/testbot/bin/Engine.pl
+++ b/testbot/bin/Engine.pl
@@ -714,7 +714,7 @@ sub main()
     $MaxRevertsWhileRunningVMs = $MaxRevertingVMs;
     LogMsg "Capping MaxRevertsWhileRunningVMs to MaxRevertingVMs ($MaxRevertsWhileRunningVMs)\n";
   }
-  $MaxVMsWhenIdle ||= $MaxActiveVMs;
+  $MaxVMsWhenIdle = $MaxActiveVMs if (!defined $MaxVMsWhenIdle);
   Cleanup(1);
 
   # Check for patches that arrived while the server was off.
-- 
2.15.1




More information about the wine-devel mailing list