Skip to content

Commit 965fc6f

Browse files
committed
Expand nodelist with the scontrol utility
1 parent 1e821f5 commit 965fc6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

reframe/core/schedulers/slurm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ def __init__(self, *args, **kwargs):
8181
def nodelist(self):
8282
# Redefine nodelist so as to generate it from the nodespec
8383
if self._nodelist is None and self._nodespec is not None:
84-
self._nodelist = nodelist_expand(self._nodespec)
84+
completed = osext.run_command(
85+
f'scontrol show hostname {self._nodespec}', log=False
86+
)
87+
self._nodelist = completed.stdout.splitlines()
8588

8689
return self._nodelist
8790

0 commit comments

Comments
 (0)