Skip to content

Commit

Permalink
Merge pull request #3820 from heywji/fix_netkvmco_typo
Browse files Browse the repository at this point in the history
utils_windows/virtio_win: hotfix for netkvm
  • Loading branch information
vivianQizhu authored Dec 28, 2023
2 parents d49e04d + 77acd0e commit ebf8a71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions virttest/utils_windows/virtio_win.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ def _get_netkvmco_path(session):
if status != 0:
continue
netkvmco_path = output.strip().split("\n")[0]
LOG.info("Found %s file at %s" % (file_type, netkvmco_path))
LOG.info("Found %s file at %s" % (file_name, netkvmco_path))
return netkvmco_path


def prepare_netkvmco(vm):
"""
Prepare the environment to run netkvmco
Expand All @@ -156,8 +157,7 @@ def prepare_netkvmco(vm):
prepare_netkvmco_cmd = "xcopy %s c:\\ /y && "
prepare_netkvmco_cmd += "rundll32 netkvmco.dll,"
prepare_netkvmco_cmd += "RegisterNetKVMNetShHelper"
session.cmd(prepare_netkvmco_cmd \
% get_netkvmco_path, timeout=240)
session.cmd(prepare_netkvmco_cmd % get_netkvmco_path, timeout=240)
finally:
session.close()
return get_netkvmco_path

0 comments on commit ebf8a71

Please sign in to comment.