buildtest.system
¶
This module detects System changes defined in class BuildTestSystem.
Module Contents¶
Classes¶
BuildTestSystem is a class that detects system configuration and outputs the result |
Functions¶
Return json dictionary of available LSF Queues and their queue states |
|
Get slurm partitions |
|
Return all slurm qos |
-
class
buildtest.system.
BuildTestSystem
¶ BuildTestSystem is a class that detects system configuration and outputs the result in .run file which are generated upon test execution. This module also keeps track of what is supported (or not supported) for a system.
-
system
¶
-
check_scheduler
(self)¶ Check for batch scheduler. Currently checks for LSF or SLURM by running
bhosts
andsinfo
command. It must be present in $PATH when running buildtest. Since it’s unlikely for a single host to have more than one scheduler, we check for multiple and return the first found.- Returns
return string LSF or SLURM. If neither found returns None
- Return type
str or None
-
init_system
(self)¶ Based on the module “distro” get system details like linux distro, processor, hostname, machine name.
-
-
buildtest.system.
get_lsf_queues
()¶ Return json dictionary of available LSF Queues and their queue states
-
buildtest.system.
get_slurm_clusters
()¶
-
buildtest.system.
get_slurm_partitions
()¶ Get slurm partitions
-
buildtest.system.
get_slurm_qos
()¶ Return all slurm qos