Skip to content

Commit 63d2c7c

Browse files
Fix regex for negative values
Co-Authored-By: Colleen Bertoni <cebertoni@gmail.com>
1 parent 6ca5b9c commit 63d2c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reframe/core/schedulers/pbs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def _query_exit_code(self, job):
205205
# With PBS Pro we can obtain the exit status of a past job
206206
extended_info = osext.run_command(f'qstat -xf {job.jobid}')
207207
exit_status_match = re.search(
208-
r'^ *Exit_status *= *(?P<exit_status>\d+)', extended_info.stdout,
208+
r'^ *Exit_status *= *(?P<exit_status>-?\d+)', extended_info.stdout,
209209
flags=re.MULTILINE,
210210
)
211211
if exit_status_match:

0 commit comments

Comments
 (0)