Skip to content

test: use_ovmf parameter only for supported arch - #2771

Merged
avitova merged 1 commit into
osbuild:mainfrom
avitova:test-pxe-optim
Oct 16, 2026
Merged

avitova merged 1 commit into
osbuild:mainfrom
avitova:test-pxe-optim

Conversation

@avitova

@avitova avitova commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

In tests, we loop through use_ovmf=True/False when running QEMU.start. However, in vm.py, use_ovmf parameter is used only for amd64 and x86_64. For all other architectures, running this for both [True, False] runs the same code path and only runs a duplicate test. This commit introduces a new function that for each architecture decides if use_ovmf is worth running for both values.

In tests, we loop through use_ovmf=True/False when running QEMU.start.
However, in vm.py, use_ovmf parameter is used only for amd64 and x86_64.
For all other architectures, running this for both [True, False] runs
the same code path and only runs a duplicate test. This commit introduces
a new function that for each architecture decides if use_ovmf is worth
running for both values.
@avitova
avitova requested review from a team, achilleas-k and thozza as code owners October 16, 2026 09:42
@avitova

avitova commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

Sweet, the test passed, and was ~40 minutes faster. Merging.

@avitova
avitova added this pull request to the merge queue Oct 16, 2026
Merged via the queue into osbuild:main with commit 7707c28 Oct 16, 2026
55 checks passed
@avitova
avitova deleted the test-pxe-optim branch October 16, 2026 16:16
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.

2 participants