Francois Gouget : testbot/LibvirtTool: Enable Windows' 'test signing' for '-tsign' snapshots.

Alexandre Julliard julliard at winehq.org
Tue Feb 22 15:47:34 CST 2022


Module: tools
Branch: master
Commit: 7e445b8e067c4860354c0d59c2e67552874aef32
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=7e445b8e067c4860354c0d59c2e67552874aef32

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Feb 22 19:55:34 2022 +0100

testbot/LibvirtTool: Enable Windows' 'test signing' for '-tsign' snapshots.

This allows running some more driver tests.
Note that this requires a 64-bit TestAgentd in order to be able to run
bcdedit.exe on 64-bit Windows.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50661
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/bin/LibvirtTool.pl | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl
index ef662cd..6364b30 100755
--- a/testbot/bin/LibvirtTool.pl
+++ b/testbot/bin/LibvirtTool.pl
@@ -586,7 +586,7 @@ sub GetSnapshotConfig($)
     {
       $Config->{locale} ||= $1; # take only the last match
     }
-    elsif ($Config->{base} =~ s/-(live|u8)$//)
+    elsif ($Config->{base} =~ s/-(live|tsign|u8)$//)
     {
       $Config->{$1} = 1;
     }
@@ -660,6 +660,15 @@ sub CreateSnapshot($$$$)
       Error("Could not change the Windows boot delay on $VMKey\n");
     }
 
+    if ($Config->{tsign})
+    {
+      # Takes effect after the next reboot
+      if (RunAndWait($PTA, ["bcdedit.exe", "/set", "testsigning", "on"]))
+      {
+        FatalError("Could not turn on test signing on $VMKey\n");
+      }
+    }
+
     $Reboot = 1;
   }
 




More information about the wine-cvs mailing list