Enforce sinfo on all clusters
This commit is contained in:
parent
692541119e
commit
433862d0ad
2 changed files with 2 additions and 1 deletions
|
@ -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}')
|
||||||
|
|
||||||
|
|
|
@ -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'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue