Skip to content

Commit a71c68b

Browse files
authored
Merge pull request #3571 from thilinarmtb/fix_regex_for_exit_code
[bugfix] Treat negative exit codes in PBS scheduler
2 parents ad7abb2 + 1b75473 commit a71c68b

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)