diff --git a/tests/guest_tools/unix/test_xen_guest_agent.py b/tests/guest_tools/unix/test_xen_guest_agent.py index c82004c8a..3392cd543 100644 --- a/tests/guest_tools/unix/test_xen_guest_agent.py +++ b/tests/guest_tools/unix/test_xen_guest_agent.py @@ -53,7 +53,7 @@ def agent_install(self, running_vm: VM, xen_guest_agent_urls: dict[str, str]) -> rpm_repo = xen_guest_agent_urls['rpm_repo'] vm.ssh(f"echo -e '[xen-guest-agent]\\nbaseurl={rpm_repo}main/\\ngpgcheck=0'" f" > /etc/yum.repos.d/xen-guest-agent.repo") - vm.ssh('dnf install -y xen-guest-agent') + vm.ssh('app=yum && which dnf && app=dnf ; $app install -y xen-guest-agent') elif pkg_mgr == PackageManagerEnum.APT_GET: # DEB packages are published to a stable APT repo in the GitLab # Generic Package Registry after each push to main.