diff --git a/reframe/core/schedulers/torque.py b/reframe/core/schedulers/torque.py index 5504fb605a..771e48769f 100644 --- a/reframe/core/schedulers/torque.py +++ b/reframe/core/schedulers/torque.py @@ -61,10 +61,13 @@ def _update_state(self, job): raise JobError('qstat failed: %s' % completed.stderr, job.jobid) nodelist_match = re.search( - r'exec_host = (?P\S+)', completed.stdout + r'exec_host = (?P[\S\t\n]+)', + completed.stdout, + re.MULTILINE ) if nodelist_match: nodespec = nodelist_match.group('nodespec') + nodespec = re.sub(r'[\n\t]*', '', nodespec) self._set_nodelist(job, nodespec) state_match = re.search(