[PATCH 1/2] testbot/LibvirtTool: Only create locale snapshots for Windows VMs.

Francois Gouget fgouget at codeweavers.com
Wed Oct 2 00:02:15 CDT 2019


This is the only supported and needed case.

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

diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl
index f6e2d4f60..b2f54f2c8 100755
--- a/testbot/bin/LibvirtTool.pl
+++ b/testbot/bin/LibvirtTool.pl
@@ -495,7 +495,8 @@ sub Revert()
   my ($SetLocale, $CreateSnapshot);
 
   my $Domain = $VM->GetDomain();
-  if (!$Domain->HasSnapshot($DomainSnapshot) and
+  if (($VM->Type eq "win32" or $VM->Type eq "win64") and
+      !$Domain->HasSnapshot($DomainSnapshot) and
       $DomainSnapshot =~ s/-([a-z]{2})[_-]([A-Z]{2})$//)
   {
     # Add some extra time to set up the VM locale and reboot it
-- 
2.20.1




More information about the wine-devel mailing list