Skip to content

Commit 7057dfc

Browse files
committed
guest-tools/win: Skip XenClean tests when vendor device is present
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]>
1 parent 362534d commit 7057dfc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/guest-tools/win/test_xenclean.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ def test_xenclean_with_test_tools(self, vm_install_test_tools_no_reboot: VM, gue
4949
assert vm.are_windows_tools_uninstalled()
5050

5151
def test_xenclean_with_other_tools(self, vm_install_other_drivers: VM, guest_tools_iso):
52-
vm, _ = vm_install_other_drivers
52+
vm, param = vm_install_other_drivers
53+
if param.get("vendor_device"):
54+
pytest.skip("Skipping XenClean with vendor device present")
55+
return
5356
logging.info(f"XenClean with other tools")
5457
run_xenclean(vm, guest_tools_iso)
5558
assert vm.are_windows_tools_uninstalled()

0 commit comments

Comments
 (0)