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 Sep 13, 2024
1 parent af63fc5 commit e4028ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qemu/tests/win_virtio_driver_installer_uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import time

from virttest import error_context
from provider import win_driver_utils

from provider.win_driver_installer_test import (
check_gagent_version,
Expand Down Expand Up @@ -98,6 +99,10 @@ 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(" %s driver version is %s" % (device_name,
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 e4028ce

Please sign in to comment.