Skip to content

feat: add QEMU platform support to core test suites#4331

Merged
LiliDeng merged 4 commits intomicrosoft:mainfrom
liunan-ms:liunan/add_qemu_support
Mar 17, 2026
Merged

feat: add QEMU platform support to core test suites#4331
LiliDeng merged 4 commits intomicrosoft:mainfrom
liunan-ms:liunan/add_qemu_support

Conversation

@liunan-ms
Copy link
Contributor

This pull request expands support for the QEMU platform across multiple test suites in the lisa/microsoft/testsuites/core directory. The main change is to include QEMU as 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.

- 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)
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 QEMU import and platform support to dhcp.py (1 test), debug.py (1 test), and azure_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 LiliDeng merged commit 7775907 into microsoft:main Mar 17, 2026
27 checks passed
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