kiwi-el8/test/unit/bootloader/template/zipl_test.py
Marcus Schäfer 583f3385df
Add support for BLS zipl
Add support for <bootloader name="zipl" .../> to support BLS
based zipl configuration. This Fixes #2481
2024-03-10 11:28:21 +01:00

29 lines
779 B
Python

from kiwi.bootloader.template.zipl import BootLoaderTemplateZipl
class TestBootLoaderTemplateZipl:
def setup(self):
self.zipl = BootLoaderTemplateZipl()
def setup_method(self, cls):
self.setup()
def test_get_loader_template(self):
assert self.zipl.get_loader_template().substitute(
boot_timeout='10',
bootpath='/boot',
targetbase='',
targettype='SCSI',
targetblocksize='512',
targetoffset='2048',
targetgeometry=''
)
def test_get_entry_template(self):
assert self.zipl.get_entry_template().substitute(
title='title',
boot_options='',
kernel_file='linux',
initrd_file='initrd'
)