提交 14b2f8fb 编写于 作者: L Lukáš Doktor

avocado.core.runner: Avoid exception when test process finished

When the test process exits before the deadline, it raises exception
while trying to destroy it. Let's just ignore the OSError and proceed.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 cc3289a7
......@@ -269,7 +269,10 @@ class TestRunner(object):
while True:
try:
if time.time() >= deadline:
os.kill(proc.pid, signal.SIGUSR1)
try:
os.kill(proc.pid, signal.SIGUSR1)
except OSError:
pass
break
wait.wait_for(lambda: not queue.empty() or not proc.is_alive(),
cycle_timeout, first, step)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册