diff --git a/reframe/core/schedulers/slurm.py b/reframe/core/schedulers/slurm.py index ac051bce2d..4ecf2299b2 100644 --- a/reframe/core/schedulers/slurm.py +++ b/reframe/core/schedulers/slurm.py @@ -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): @@ -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