mirror of
https://github.com/ceph/ceph
synced 2025-03-31 16:25:56 +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',
|
'-j',
|
||||||
job_info['job_id'],
|
job_info['job_id'],
|
||||||
]
|
]
|
||||||
|
try:
|
||||||
subprocess.Popen(args).wait()
|
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:
|
else:
|
||||||
# Let's make sure that paddles knows the job is finished. We don't know
|
# 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
|
# the status, but if it was a pass or fail it will have already been
|
||||||
|
Loading…
Reference in New Issue
Block a user