diff --git a/reframe/core/schedulers/slurm.py b/reframe/core/schedulers/slurm.py index c741f0fc70..1f314f874f 100644 --- a/reframe/core/schedulers/slurm.py +++ b/reframe/core/schedulers/slurm.py @@ -482,7 +482,7 @@ def _cancel_if_blocked(self, job, reasons=None): return if not reasons: - completed = _run_strict('squeue -h -j %s -o %%r' % job.jobid) + completed = osext.run_command('squeue -h -j %s -o %%r' % job.jobid) reasons = completed.stdout.splitlines() if not reasons: # Can't retrieve job's state. Perhaps it has finished already