Skip to content

Commit

Permalink
Update cmd of checking windows qemu-ga service
Browse files Browse the repository at this point in the history
Signed-off-by: Ming Xie <[email protected]>
  • Loading branch information
mxie91 committed Sep 3, 2024
1 parent b7ca5fd commit 4ca9d1b
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 4ca9d1b

Please sign in to comment.