diff --git a/reframe/core/schedulers/pbs.py b/reframe/core/schedulers/pbs.py index 531817c67..10c7e809d 100644 --- a/reframe/core/schedulers/pbs.py +++ b/reframe/core/schedulers/pbs.py @@ -205,7 +205,7 @@ def _query_exit_code(self, job): # With PBS Pro we can obtain the exit status of a past job extended_info = osext.run_command(f'qstat -xf {job.jobid}') exit_status_match = re.search( - r'^ *Exit_status *= *(?P\d+)', extended_info.stdout, + r'^ *Exit_status *= *(?P-?\d+)', extended_info.stdout, flags=re.MULTILINE, ) if exit_status_match: