Francois Gouget : testbot/LibvirtTool: Don't unset the VM name before reporting it is wrong.
Alexandre Julliard
julliard at winehq.org
Fri Mar 12 14:28:32 CST 2021
Module: tools
Branch: master
Commit: 46bbf2334203b5b58f0800b2ca79367d0e8df915
URL: https://source.winehq.org/git/tools.git/?a=commit;h=46bbf2334203b5b58f0800b2ca79367d0e8df915
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Fri Mar 12 01:58:22 2021 +0100
testbot/LibvirtTool: Don't unset the VM name before reporting it is wrong.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/bin/LibvirtTool.pl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl
index be6c575..f3ea198 100755
--- a/testbot/bin/LibvirtTool.pl
+++ b/testbot/bin/LibvirtTool.pl
@@ -120,14 +120,15 @@ if (!defined $Usage)
}
else
{
- $VMKey = WineTestBot::VM::UntaintName($VMKey);
- if (!defined $VMKey)
+ my $UnTainted = WineTestBot::VM::UntaintName($VMKey);
+ if (!defined $UnTainted)
{
Error "'$VMKey' is not a valid VM name\n";
$Usage = 2;
}
else
{
+ $VMKey = $UnTainted;
$VM = CreateVMs()->GetItem($VMKey);
if (!defined $VM)
{
More information about the wine-cvs
mailing list