feat: add QEMU platform support to core test suites#4331
Merged
LiliDeng merged 4 commits intomicrosoft:mainfrom Mar 17, 2026
Merged
feat: add QEMU platform support to core test suites#4331LiliDeng merged 4 commits intomicrosoft:mainfrom
LiliDeng merged 4 commits intomicrosoft:mainfrom
Conversation
- Add QEMU to supported_platform_type for azure_image_standard tests: verify_default_targetpw, verify_grub, verify_network_file_configuration, verify_ifcfg_eth0, verify_udev_rules_moved, verify_dhcp_file_configuration, verify_repository_installed, verify_serial_console_is_enabled, verify_bash_history_is_empty, verify_no_pre_exist_users, verify_python_version, verify_openssl_version, verify_azure_64bit_os, verify_omi_version, verify_no_swap_on_osdisk - Add QEMU to supported_platform_type for debug (verify_enable_kprobe) - Add QEMU to supported_platform_type for dhcp (verify_dhcp_client_timeout) - Accept cloud-init exit code 2 (degraded done) in libvirt platform, allowing recoverable warnings (e.g. hostname set failures)
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds QEMU as a supported platform type across multiple core test suites, enabling these tests to run on QEMU-based systems alongside existing platforms (Azure, Hyper-V, Ready).
Changes:
- Added
QEMUimport and platform support todhcp.py(1 test),debug.py(1 test), andazure_image_standard.py(~15 tests). - Tests that were previously Azure-only (e.g.,
verify_python_version,verify_azure_64bit_os,verify_no_swap_on_osdisk) now also run on QEMU.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
lisa/microsoft/testsuites/core/dhcp.py |
Added QEMU to verify_dhcp_client_timeout platform list |
lisa/microsoft/testsuites/core/debug.py |
Added QEMU to verify_enable_kprobe platform list |
lisa/microsoft/testsuites/core/azure_image_standard.py |
Added QEMU to ~15 test methods' platform lists, including formerly Azure-only tests |
You can also share your feedback on Copilot code review. Take the survey.
LiliDeng
approved these changes
Mar 17, 2026
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.
This pull request expands support for the QEMU platform across multiple test suites in the
lisa/microsoft/testsuites/coredirectory. The main change is to includeQEMUas a supported platform type in test requirements, enabling the relevant tests to run on QEMU-based systems in addition to existing platforms like Azure and Hyper-V.