Skip to content

avocado-setup: use the available QEMU emulator binary for guest tests! - #419

Merged
PraveenPenguin merged 1 commit into
lop-devops:masterfrom
Anushree-Mathur:emulator_proper_check
Nov 20, 2026
Merged

PraveenPenguin merged 1 commit into
lop-devops:masterfrom
Anushree-Mathur:emulator_proper_check

Conversation

@Anushree-Mathur

Copy link
Copy Markdown
Contributor

The guest test configs hardcode /usr/bin/qemu-system-ppc64 for qemu_binary and emulator_path. RHEL 10 ships only /usr/libexec/qemu-kvm, so virt-install fails with:

Cannot check QEMU binary /usr/bin/qemu-system-ppc64: No such file or
directory

Add helper.get_qemu_emulator(), which returns /usr/libexec/qemu-kvm when /usr/bin/qemu-system-ppc64 is missing and /usr/libexec/qemu-kvm exists, and the existing default otherwise. TestSuite.config() uses it to rewrite the emulator path in the copied backend cfg, leaving the user config files untouched.

Signed-off-by: Anushree-Mathur <anushree.mathur@linux.ibm.com>

The guest test configs hardcode /usr/bin/qemu-system-ppc64 for
qemu_binary and emulator_path. RHEL 10 ships only /usr/libexec/qemu-kvm,
so virt-install fails with:

  Cannot check QEMU binary /usr/bin/qemu-system-ppc64: No such file or
  directory

Add helper.get_qemu_emulator(), which returns /usr/libexec/qemu-kvm when
/usr/bin/qemu-system-ppc64 is missing and /usr/libexec/qemu-kvm exists,
and the existing default otherwise. TestSuite.config() uses it to rewrite
the emulator path in the copied backend cfg, leaving the user config
files untouched.

Signed-off-by: Anushree Mathur <anushree.mathur@linux.ibm.com>
@PraveenPenguin
PraveenPenguin merged commit f90e7b5 into lop-devops:master Nov 20, 2026
4 checks passed

@harihare harihare left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants