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

qemu.tests.virtio_console: Fix multi_open test to suit latest kernels

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: NLukáš Doktor <ldoktor@redhat.com>
上级 652ca4e9
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册