Enforce sinfo on all clusters

This commit is contained in:
Benoît Seignovert 2024-02-12 16:00:36 +01:00
parent 692541119e
commit 433862d0ad
Signed by: Benoît Seignovert
GPG key ID: F5D8895227D18A0B
2 changed files with 2 additions and 1 deletions

View file

@ -61,7 +61,7 @@ class SlurmNode:
def _sinfo_run() -> str: def _sinfo_run() -> str:
"""SLURM SINFO run command.""" """SLURM SINFO run command."""
flags = '--federation --noheader --responding' flags = '--federation --noheader --responding --cluster=all'
fmt = 'Cluster,PartitionName,NodeHost,StateLong,CPUsState,Memory,Gres' fmt = 'Cluster,PartitionName,NodeHost,StateLong,CPUsState,Memory,Gres'
cmd = shlex.split(f'sinfo {flags} --Format={fmt}') cmd = shlex.split(f'sinfo {flags} --Format={fmt}')

View file

@ -53,6 +53,7 @@ def test_slurm_sinfo_run(monkeypatch):
'--federation ' '--federation '
'--noheader ' '--noheader '
'--responding ' '--responding '
'--cluster=all '
'--Format=Cluster,PartitionName,NodeHost,StateLong,CPUsState,Memory,Gres' '--Format=Cluster,PartitionName,NodeHost,StateLong,CPUsState,Memory,Gres'
) )