From 304bc784b581e629a2c45e50bb98856ff72405c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Mon, 30 Sep 2013 10:10:10 +0200 Subject: [PATCH] qemu.tests.virtio_console: Fix multi_open test to suit latest kernels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Current kernels report Error 16 Device or resource busy: ... instead of Error 24 Access is denied. Accept all kind of failures as success in this particular test. Signed-off-by: Lukáš Doktor --- qemu/tests/virtio_console.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qemu/tests/virtio_console.py b/qemu/tests/virtio_console.py index 3c37e46e..3bd1dec3 100644 --- a/qemu/tests/virtio_console.py +++ b/qemu/tests/virtio_console.py @@ -252,10 +252,6 @@ def run_virtio_console(test, params, env): if match != 1: # Multiple open didn't fail: raise error.TestFail("Unexpended pass of opening the" " serialport device for the 2nd time.") - elif ((not "[Errno 24]" in data) and - (not "Access is denied" in data)): - raise error.TestFail("Multiple opening fail but with another" - " exception %s" % data) port.open() cleanup(vm, guest_worker) -- GitLab