[tools] testbot/LibvirtTool: Don't unset the VM name before reporting it is wrong.

Francois Gouget fgouget at codeweavers.com
Thu Mar 11 18:58:22 CST 2021


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 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 73a3b19d7..4f364541f 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)
       {
-- 
2.20.1




More information about the wine-devel mailing list