Skip to content

Commit

Permalink
installer_uninstall: report driver version if failed
Browse files Browse the repository at this point in the history
Sometimes drivers were updated via windows update after
uninstall them via installer, print driver version
to debug whether it's a product issue.

Signed-off-by: Xiaoling Gao <[email protected]>
  • Loading branch information
xiagao committed Aug 30, 2024
1 parent 7ced0df commit b62c2a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qemu/tests/win_virtio_driver_installer_uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ def run(test, params, env):
inf_name = re.findall(r"\.inf", output, re.I)
if inf_name:
uninstalled_device.append(device_name)
ver_list = win_driver_utils._pnpdrv_info(session, device_name,
["DriverVersion"])
test.log.info("Driver version is %s" % ver_list)
if uninstalled_device:
test.fail("%s uninstall failed" % uninstalled_device)
error_context.context("Check qemu-ga service.", test.log.info)
Expand Down

0 comments on commit b62c2a4

Please sign in to comment.