mirror of
https://github.com/ceph/ceph
synced 2025-03-23 10:48:12 +00:00
Catch OSError if script isn't in $PATH
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
This commit is contained in:
parent
420fff6207
commit
c22ee528b7
@ -225,7 +225,11 @@ def run_with_watchdog(process, job_config):
|
||||
'-j',
|
||||
job_info['job_id'],
|
||||
]
|
||||
subprocess.Popen(args).wait()
|
||||
try:
|
||||
subprocess.Popen(args).wait()
|
||||
log.warn("Reported results via the teuthology-report command")
|
||||
except OSError:
|
||||
log.warn("Tried to run teuthology-report but it wasn't in $PATH")
|
||||
else:
|
||||
# Let's make sure that paddles knows the job is finished. We don't know
|
||||
# the status, but if it was a pass or fail it will have already been
|
||||
|
Loading…
Reference in New Issue
Block a user