avocado.utils.process: SubProcess() -> Add .start() and .stop() methods
Now that we do not initialize the subprocess upon class
initialization, add a utility method .start(), that will
start running the command, useful for background commands.
In order to make things symmetrical, add a .stop() method,
that will send a sigterm to the process, then wait on it.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
Showing
想要评论请 注册 或 登录