Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions reframe/core/schedulers/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
JobBlockedError,
JobError,
JobSchedulerError)
from reframe.utility import nodelist_abbrev, nodelist_expand, seconds_to_hms
from reframe.utility import nodelist_abbrev, seconds_to_hms


def slurm_state_completed(state):
Expand Down Expand Up @@ -81,7 +81,10 @@ def __init__(self, *args, **kwargs):
def nodelist(self):
# Redefine nodelist so as to generate it from the nodespec
if self._nodelist is None and self._nodespec is not None:
self._nodelist = nodelist_expand(self._nodespec)
completed = osext.run_command(
f'scontrol show hostname {self._nodespec}', log=False
)
self._nodelist = completed.stdout.splitlines()

return self._nodelist

Expand Down