When kiwi calls the bootloader config and installation modules several files gets created as unlabeled_t because the labeling happened earlier. This commit ensures that setfiles gets called after BootLoaderConfig and/or BootLoaderInstall has done its job. This Fixes #2568
27 lines
699 B
Python
27 lines
699 B
Python
from unittest.mock import Mock
|
|
from pytest import raises
|
|
|
|
from kiwi.bootloader.install.base import BootLoaderInstallBase
|
|
|
|
|
|
class TestBootLoaderInstallBase:
|
|
def setup(self):
|
|
self.bootloader = BootLoaderInstallBase(
|
|
Mock(), 'root_dir', Mock()
|
|
)
|
|
|
|
def setup_method(self, cls):
|
|
self.setup()
|
|
|
|
def test_install(self):
|
|
with raises(NotImplementedError):
|
|
self.bootloader.install()
|
|
|
|
def test_install_required(self):
|
|
with raises(NotImplementedError):
|
|
self.bootloader.install_required()
|
|
|
|
def test_secure_boot_install(self):
|
|
with raises(NotImplementedError):
|
|
self.bootloader.secure_boot_install()
|