Skip to content

Commit 58fa354

Browse files
ckyrouacjmarrero
authored andcommitted
tests: Skip multi-device ESP test on non-UEFI systems
The multi-device ESP test creates ESP partitions and expects bootupd to install a UEFI bootloader. On BIOS-booted systems, bootupd instead tries to install GRUB for i386-pc, which requires a BIOS Boot Partition and fails. The test plan already requests UEFI provisioning via the hardware hint, but Testing Farm does not always honor this on CentOS Stream x86_64. Add a runtime check for /sys/firmware/efi so the test skips gracefully on BIOS hosts rather than failing. Assisted-by: Claude Code (Opus 4.6) Signed-off-by: ckyrouac <ckyrouac@redhat.com> Signed-off-by: Colin Walters <walters@verbum.org>
1 parent c7ecf6f commit 58fa354

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tmt/tests/booted/test-multi-device-esp.nu

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,16 @@ def test_no_esp_failure [] {
420420
}
421421

422422
def main [] {
423+
# This test requires a UEFI-booted host because it creates ESP partitions
424+
# and expects bootupd to install a UEFI bootloader. On BIOS systems,
425+
# bootupd would try to install GRUB for i386-pc which needs a BIOS Boot
426+
# Partition instead of an ESP.
427+
if not ("/sys/firmware/efi" | path exists) {
428+
print "SKIP: multi-device ESP test requires UEFI boot"
429+
tap ok
430+
return
431+
}
432+
423433
# This test exercises bootupd-based bootloader installation which only
424434
# supports GRUB today. Skip when the image uses systemd-boot.
425435
if (tap is_composefs) {

0 commit comments

Comments
 (0)