Add username to sinfo command
This commit is contained in:
parent
1f4d8e28fa
commit
e2e2318c6c
2 changed files with 19 additions and 7 deletions
|
@ -53,10 +53,19 @@ def test_slurm_sinfo_run(monkeypatch):
|
|||
'--federation '
|
||||
'--noheader '
|
||||
'--responding '
|
||||
'--cluster=all '
|
||||
'--Format=Cluster,PartitionName,NodeHost,StateLong,CPUsState,Memory,Gres'
|
||||
)
|
||||
|
||||
assert _sinfo_run(username='john-doe') == (
|
||||
'su - john-doe -c "'
|
||||
'sinfo '
|
||||
'--federation '
|
||||
'--noheader '
|
||||
'--responding '
|
||||
'--Format=Cluster,PartitionName,NodeHost,StateLong,CPUsState,Memory,Gres'
|
||||
'"'
|
||||
)
|
||||
|
||||
|
||||
def test_slurm_sinfo_reader():
|
||||
"""Test SLURM SINFO reader."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue