def test_check_consistent_kernel_in_boot_and_system_image( self, mock_boot_path, mock_machine): mock_boot_path.return_value = '../data' mock_machine.return_value = 'x86_64' xml_state = XMLState(self.description.load(), ['vmxFlavour'], 'oem') runtime_checker = RuntimeChecker(xml_state) runtime_checker.check_consistent_kernel_in_boot_and_system_image()
def test_check_consistent_kernel_in_boot_and_system_image( self, mock_boot_path): Defaults.set_platform_name('x86_64') mock_boot_path.return_value = '../data' xml_state = XMLState(self.description.load(), ['vmxFlavour'], 'oem') runtime_checker = RuntimeChecker(xml_state) with raises(KiwiRuntimeError): runtime_checker.check_consistent_kernel_in_boot_and_system_image()
def test_check_consistent_kernel_in_boot_and_system_image( self, mock_boot_path, mock_machine ): mock_boot_path.return_value = '../data' mock_machine.return_value = 'x86_64' xml_state = XMLState( self.description.load(), ['vmxFlavour'], 'oem' ) runtime_checker = RuntimeChecker(xml_state) runtime_checker.check_consistent_kernel_in_boot_and_system_image()