testshift.modules.kernel

Module Contents

class testshift.modules.kernel.Kernel(node_name)

Bases: testshift.modules.base.Module

Kernel class provides a Kernel entity to find out its attributes.

Parameters

node_name (str) – Name of the node.

Examples

>>> kernel = Kernel("hostname00.cluster.domain.tld")
>>> kernel.is_real_time
True
>>> kernel.has_module("i915")
False
property is_real_time(self)

bool: Returns True if the node is running on a real time kernel.

has_module(self, kmod)

has_module searches for kmod on the list of loaded modules.

Parameters

kmod (str) – Kernel module to look for.

Returns

True or False, whether the module is loaded.