Repository navigation
avocado-setup: use the available QEMU emulator binary for guest tests! - #419
Open
Anushree-Mathur wants to merge 1 commit into
Open
Anushree-Mathur wants to merge 1 commit into
Anushree-Mathur wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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>