提交 9b116106 编写于 作者: L Lukáš Doktor 提交者: Lucas Meneghel Rodrigues

virtio_console: FIX emit exit_event on failures in migrate test

When migration fails we have to emit exit_event to background threads
otherwise there are confusing errors in log.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 017dc196
......@@ -913,13 +913,16 @@ def run_virtio_console(test, params, env):
raise error.TestFail("Exit event emited, check the log for"
"send/recv thread failure.")
else:
exit_event.set()
raise error.TestFail("Send thread died unexpectedly in "
"migration %d", (j + 1))
for i in range(0, len(ports[1:])):
if not threads[i + 1].isAlive():
exit_event.set()
raise error.TestFail("Recv thread %d died unexpectedly in "
"migration %d", i, (j + 1))
if verified[i] == threads[i + 1].idx:
exit_event.set()
raise error.TestFail("No new data in %d console were "
"transfered after migration %d",
i, (j + 1))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册