Module: tools Branch: master Commit: cfaf2a62e692dc6241bf2532aaa102d6140b5157 URL: https://source.winehq.org/git/tools.git/?a=commit;h=cfaf2a62e692dc6241bf2532...
Author: Francois Gouget fgouget@codeweavers.com Date: Thu Feb 10 19:51:42 2022 +0100
testbot/LibvirtTool: Do not require '-off' to be at the end of the snapshot name.
One could certainly reorder the elements of the snapshot name so '-off' is the last part but it's not always natural.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
testbot/bin/LibvirtTool.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl index ae21834..e3bc2a0 100755 --- a/testbot/bin/LibvirtTool.pl +++ b/testbot/bin/LibvirtTool.pl @@ -283,7 +283,7 @@ sub ShutDown() { my $Domain = $VM->GetDomain(); my $CurrentSnapshot = $Domain->GetSnapshotName(); - if (!defined $CurrentSnapshot or $CurrentSnapshot !~ /-off$/ or + if (!defined $CurrentSnapshot or $CurrentSnapshot !~ /-off\b/ or !$Domain->IsPoweredOn()) { return 1;