[PATCH] testbot/Engine: Fix handling of --kill-vms.
Francois Gouget
fgouget at codeweavers.com
Fri Dec 15 00:58:45 CST 2017
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/bin/Engine.pl | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/testbot/bin/Engine.pl b/testbot/bin/Engine.pl
index dfe266f1..7dab98e6 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();
+ }
}
}
--
2.15.1
More information about the wine-devel
mailing list