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@codeweavers.com --- See also the comment for the 'boot delay' patch. --- 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 ef662cdf19..6364b306d9 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; }