Module: tools Branch: master Commit: b679f7fb2daf0d9e011c0dee2ce8ed33fd5e5031 URL: http://source.winehq.org/git/tools.git/?a=commit;h=b679f7fb2daf0d9e011c0dee2...
Author: Francois Gouget fgouget@codeweavers.com Date: Fri Dec 15 07:58:45 2017 +0100
testbot/Engine: Fix handling of --kill-vms.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
testbot/bin/Engine.pl | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/testbot/bin/Engine.pl b/testbot/bin/Engine.pl index dfe266f..7dab98e 100755 --- a/testbot/bin/Engine.pl +++ b/testbot/bin/Engine.pl @@ -207,6 +207,12 @@ sub Cleanup($;$$) $VM->RunPowerOff(); } } + # $KillVMs is normally used on shutdown so don't start a process that + # will get stuck 'forever' waiting for an offline VM. + elsif ($KillVMs and $VM->Status !~ /^(?:off|offline)$/) + { + $VM->RunPowerOff(); + } } }