Skip to content

Commit

Permalink
Merge pull request #3993 from mxie91/update-cmd-to-check-windows-qemu…
Browse files Browse the repository at this point in the history
…-ga-service

Update cmd of checking windows qemu-ga service
  • Loading branch information
chunfuwen authored Sep 26, 2024
2 parents 9f11976 + 4ca9d1b commit 5ca5488
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions virttest/utils_v2v.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ def get_service_info(self, name=None):
:param name: an optional service name
"""
cmd = r"sc query"
cmd = r"powershell get-service"
if name:
cmd += " " + name
return self.run_cmd(cmd)[1]
Expand All @@ -1039,8 +1039,8 @@ def get_driver_info(self, signed=True):
cmd = "DRIVERQUERY"
if signed:
cmd += " /SI"
# Try 5 times to get driver info
output, count = "", 5
# Try 10 times to get driver info
output, count = "", 10
while count > 0:
LOG.debug("%d times remaining for getting driver info" % count)
try:
Expand Down

0 comments on commit 5ca5488

Please sign in to comment.