avocado.utils.process: Make sure timeout propagated
Currently when the process time-outs, it's killed by default with
SIGTERM and then the status is reported. This usually results in process
returning non-zero status, which is then reported to the user. The
problem is that SIGTERM can be caught and handled inside the executed
command and it can report 0. Then the user does not know whether the
command actually finished on time or whether it was killed by avocado.
This commit sets the `self.result.interrupted`, which makes sure the
status is propagated even when the process finishes with zero.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
Showing
想要评论请 注册 或 登录