diff --git a/qemu/tests/cfg/usb.cfg b/qemu/tests/cfg/usb.cfg index c37222b8951df781ee7606b2f2951659a9ee94e1..5573d4c71ab07df42afc28a57736beed15f690c8 100644 --- a/qemu/tests/cfg/usb.cfg +++ b/qemu/tests/cfg/usb.cfg @@ -311,13 +311,15 @@ Host_RHEL.m6: # Now no output from monitor for negative test on Host_RHEL.m6 usb_reply_msg = "" - usb_reply_msg = "Property 'usb-host.productid' doesn't take value" + usb_reply_msg = "Property 'usb-host.productid' doesn't take value;" usb_reply_msg += "Parameter 'productid' expects an int64 value or range;" usb_reply_msg += "Parameter 'vendorid' expects an int64 value or range;" usb_reply_msg += "productid out of range;" usb_reply_msg += "vendorid out of range;" usb_reply_msg += "Parameter 'productid' expects uint32_t;" usb_reply_msg += "Parameter 'vendorid' expects uint32_t;" + usb_reply_msg += "Parameter 'productid' expects uint64;" + usb_reply_msg += "Parameter 'vendorid' expects uint64" usb_host_device_list = "aaa:aaa,aaa:111,21231:11231333,11231333:21231,21231:1123132233,2123133:1123132233111,1123132233111:111" - usb_check_isobufs: usb_check_isobufs = "yes" diff --git a/qemu/tests/usb_host.py b/qemu/tests/usb_host.py index d6849e8ee5fb9c0a23b0746f6099de4e67af61e8..0bcb2b5a78d35a66223be3900a64411327e1d71b 100644 --- a/qemu/tests/usb_host.py +++ b/qemu/tests/usb_host.py @@ -48,6 +48,7 @@ def run(test, params, env): vm = env.get_vm(params["main_vm"]) vm.verify_alive() session = vm.wait_for_login() + usb_reply_msg_list = params.get("usb_reply_msg").split(";") usb_host_device_list = params["usb_host_device_list"].split(",") for dev in usb_host_device_list: vid, pid = dev.split(":") @@ -55,7 +56,6 @@ def run(test, params, env): monitor_add += ",vendorid=%s" % vid monitor_add += ",productid=%s" % pid reply = vm.monitor.cmd(monitor_add) - usb_reply_msg_list = params.get("usb_reply_msg").split(";") negative_flag = False for msg in usb_reply_msg_list: if msg in reply: @@ -65,7 +65,6 @@ def run(test, params, env): test.fail("Could not get expected warning" " msg in negative test, monitor" " returns: '%s'" % reply) - vm.reboot() return device = params["usb_host_device"]