From a2a479a2059d3dd3ed85d9fcb98f6d5163c1f471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Thu, 26 Sep 2013 19:17:50 +0200 Subject: [PATCH] virttest.qemu_virtio_port: Allow to reload loss idx from outside the thread MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Usually the index of lost characters is reloaded while reconnection. This patch creates a function, which can be called from outside of this thread in case we want to reload this index elswhere. Additionally booth (debug and normal) threads use the same code now. Signed-off-by: Lukáš Doktor --- qemu/tests/virtio_console.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu/tests/virtio_console.py b/qemu/tests/virtio_console.py index 47022b57..dc35b532 100644 --- a/qemu/tests/virtio_console.py +++ b/qemu/tests/virtio_console.py @@ -988,6 +988,7 @@ def run_virtio_console(test, params, env): 'test_time', test_time) else: break + threads[1].reload_loss_idx() if count == threads[1].idx or not threads[1].isAlive(): if not threads[1].isAlive(): logging.error('RecvCheck thread stopped unexpectedly.') -- GitLab