avocado.utils.process: Refactor and bugfix
Chasing a bug, I found opportunities to improve the
process related code:
* Populating the CmdResult object on every
opportunity that wait() or poll() is executed
in the subprocess.
* Changing the name of the original wait() method
to run(), making it consistent with the run()
function of the module.
Also, to avoid a defunct process on a Ctrl+C, register
the SIGINT signal handler to the SubProcess wait()
method.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
Showing
想要评论请 注册 或 登录