提交 b81f4170 编写于 作者: C Chen Qun

hotplug_serial: add err msg for the return of two_devid

The return massages maybe:'Error: the bus virtio-serial0.0
-driver virtserialport set property failed'
Signed-off-by: NChen Qun <kuhn.chenqun@huawei.com>
上级 520ae639
...@@ -232,7 +232,9 @@ def run(test, params, env): ...@@ -232,7 +232,9 @@ def run(test, params, env):
err_o2 = "Parsing chardev args failed" err_o2 = "Parsing chardev args failed"
err_o3 = "Property 'virtserialport.chardev' can't" err_o3 = "Property 'virtserialport.chardev' can't"
err_o4 = "duplicate property" err_o4 = "duplicate property"
if (err_o1 not in dup_o) and (err_o2 not in dup_o) and (err_o3 not in dup_o) and (err_o4 not in dup_o): err_o5 = "set property failed"
if (err_o1 not in dup_o) and (err_o2 not in dup_o) and (err_o3 not in dup_o) and\
(err_o4 not in dup_o) and (err_o5 not in dup_o):
test.fail("Expect fail, but run successfully:\n%s" % ret) test.fail("Expect fail, but run successfully:\n%s" % ret)
else: else:
if "already exists" not in dup_e: if "already exists" not in dup_e:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册