So that job teardown isn't hindered.
Signed-off-by: Zack Cerza <zack@redhat.com>
from . import run
from .. import misc
+from teuthology.exceptions import CommandFailedError
log = logging.getLogger(__name__)
return
self.proc.stdin.close()
self.log.debug('waiting for process to exit')
- run.wait([self.proc], timeout=timeout)
+ try:
+ run.wait([self.proc], timeout=timeout)
+ except CommandFailedError:
+ log.exception("Error while waiting for process to exit")
self.proc = None
self.log.info('Stopped')