Skip to content

Commit

Permalink
guest-tools/win: Add test_install_with_other_tools_repeat
Browse files Browse the repository at this point in the history
Signed-off-by: Tu Dinh <[email protected]>
  • Loading branch information
Tu Dinh committed Jan 21, 2025
1 parent 0b80418 commit 5e6f444
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/guest-tools/win/test_guest_tools_win.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,15 @@ def test_install_with_other_tools(self, vm_install_other_drivers, guest_tools_is
else:
exitcode = install_guest_tools(vm, guest_tools_iso, PowerAction.Nothing, check=False)
assert exitcode == ERROR_INSTALL_FAILURE

@pytest.mark.skip("manual only")
@pytest.mark.parametrize("count", range(100))
def test_install_with_other_tools_repeat(self, vm_install_other_drivers, guest_tools_iso, count):
logging.info(f"count {count}")
vm, param = vm_install_other_drivers
if param["upgradable"]:
install_guest_tools(vm, guest_tools_iso, PowerAction.Reboot, check=False)
assert vm.are_windows_tools_working()
else:
exitcode = install_guest_tools(vm, guest_tools_iso, PowerAction.Nothing, check=False)
assert exitcode == ERROR_INSTALL_FAILURE

0 comments on commit 5e6f444

Please sign in to comment.