Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/bib/test_build_iso.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
)
from vmtest.vm import QEMU

ISO_BOOT_TIMEOUT = 1800


@pytest.mark.skipif(platform.system() != "Linux", reason="boot test only runs on linux right now")
@pytest.mark.parametrize("image_type", gen_testcases("anaconda-iso"), indirect=["image_type"])
Expand All @@ -35,7 +37,7 @@ def test_iso_installs(image_type):
fp.truncate(10_1000_1000_1000)
# install to test disk
with QEMU(test_disk_path, cdrom=installer_iso_path) as vm:
vm.start(wait_event="qmp:RESET", snapshot=False, use_ovmf=True)
vm.start(wait_event="qmp:RESET", snapshot=False, use_ovmf=True, timeout_sec=ISO_BOOT_TIMEOUT)
vm.force_stop()
# boot test disk and do extremly simple check
with QEMU(test_disk_path) as vm:
Expand Down Expand Up @@ -196,7 +198,7 @@ def test_bootc_installer_iso_installs(tmp_path, build_container, container_ref):
fp.truncate(10_1000_1000_1000)
# install to test disk
with QEMU(test_disk_path, cdrom=installer_iso_path) as vm:
vm.start(wait_event="qmp:RESET", snapshot=False, use_ovmf=True)
vm.start(wait_event="qmp:RESET", snapshot=False, use_ovmf=True, timeout_sec=ISO_BOOT_TIMEOUT)
vm.force_stop()
# boot test disk and do extremly simple check
with QEMU(test_disk_path) as vm:
Expand Down
Loading