Skip to content

Commit

Permalink
guest-tools/win: Skip XenClean tests when vendor device is present
Browse files Browse the repository at this point in the history
The vendor device being present will cause Windows to reinstall
XenServer drivers automatically, so skip XenClean tests in these
situations.

Signed-off-by: Tu Dinh <[email protected]>
  • Loading branch information
Tu Dinh committed Jan 23, 2025
1 parent 362534d commit 7057dfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/guest-tools/win/test_xenclean.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ def test_xenclean_with_test_tools(self, vm_install_test_tools_no_reboot: VM, gue
assert vm.are_windows_tools_uninstalled()

def test_xenclean_with_other_tools(self, vm_install_other_drivers: VM, guest_tools_iso):
vm, _ = vm_install_other_drivers
vm, param = vm_install_other_drivers
if param.get("vendor_device"):
pytest.skip("Skipping XenClean with vendor device present")
return
logging.info(f"XenClean with other tools")
run_xenclean(vm, guest_tools_iso)
assert vm.are_windows_tools_uninstalled()

0 comments on commit 7057dfc

Please sign in to comment.