tbot_contrib.linux
¶
Various Linux related testcases and helpers.
- tbot_contrib.linux.meminfo(lnx: LinuxShell) Dict[str, int] [source]¶
Extract information from
/proc/meminfo
.This helper returns a dict with the values from
/proc/meminfo
for use in testcases. For example, this can be used to check certain memory limits are not violated.meminfo = tbot_contrib.linux.meminfo(lnx) # At least 1 GiB of memory available assert meminfo["MemAvailable"] >= 0x40000000
New in version 0.10.4.