testshift.modules.cmdline
¶
Module Contents¶
-
class
testshift.modules.cmdline.
CMDLine
(node_name)¶ Bases:
testshift.modules.base.Module
Test kernel command line parameters
- Parameters
node_name (str) – Name of the node.
Examples
>>> cmdline = CMDLine("hostname00.cluster.domain.tld") >>> cmdline.contains("isolcpus=5-10") True
-
contains
(self, search_string)¶ Contains uses search_string literally to search it within the kernel cmdline. Beware the search_string will be escaped.
- Parameters
search_string (str) – literal string to be searched in cmdline.
- Returns
True/False whether the search string was found.