From 9b11610606b4a7e51420247b12cea24720d7e744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Sat, 13 Oct 2012 11:23:42 +0200 Subject: [PATCH] virtio_console: FIX emit exit_event on failures in migrate test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When migration fails we have to emit exit_event to background threads otherwise there are confusing errors in log. Signed-off-by: Lukáš Doktor --- kvm/tests/virtio_console.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kvm/tests/virtio_console.py b/kvm/tests/virtio_console.py index 237acee6..7325420d 100644 --- a/kvm/tests/virtio_console.py +++ b/kvm/tests/virtio_console.py @@ -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)) -- GitLab