Skip to content

Commit

Permalink
Merge pull request #4205 from xiagao/bz3023-uninstall-store
Browse files Browse the repository at this point in the history
win_driver_utils: system reboot is needed after remove drivers
  • Loading branch information
vivianQizhu authored Nov 27, 2024
2 parents cfeec15 + b1a3eb9 commit 651e645
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion provider/win_driver_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def uninstall_driver(session, test, devcon_path, driver_name, device_name, devic
else:
uninst_store_cmd = "pnputil /f /d %s" % inf_list[0]
status, output = session.cmd_status_output(uninst_store_cmd, INSTALL_TIMEOUT)
if status:
# for viostor and vioscsi, they need system reboot
# acceptable status: OK(0), REBOOT(3010)
if status not in (0, 3010):
test.error(
"Failed to uninstall driver '%s' from store, "
"details:\n%s" % (driver_name, output)
Expand Down

0 comments on commit 651e645

Please sign in to comment.