未验证 提交 079bc5a1 编写于 作者: Y Yanan Fu 提交者: GitHub

Merge pull request #2192 from nanliu-r/re-use_chardev

virtio-serial:Keep chardev open to re-use
......@@ -37,8 +37,13 @@
unplug_chardev_vs1 = no
unplug_chardev_vs2 = no
filesize = 100
Linux:
filesize = 2000
variants:
- @default:
bg_test = no
repeat_times = 1
- with_bg_test:
Linux:
filesize = 2000
- unplug_port_chardev_pci:
type = virtio_serial_unplug_port_chardev_pci
sleep_time = 0.5
......
......@@ -34,7 +34,8 @@ def run(test, params, env):
os_type = params["os_type"]
timeout = int(params.get("login_timeout", 360))
module = params.get("modprobe_module")
check_module = params.get_boolean("check_module", "yes")
check_module = params.get_boolean("check_module", True)
bg_test = params.get_boolean("bg_test", True)
session = vm.wait_for_login()
if os_type == "windows":
driver_name = params["driver_name"]
......@@ -61,7 +62,8 @@ def run(test, params, env):
test.error("Failed to get device %s" % chardev_qid)
if port_params['serial_type'] == 'virtserialport':
params['file_transfer_serial_port'] = port
run_bg_test(test, params, vm)
if bg_test:
run_bg_test(test, params, vm)
for repeat in range(params.get_numeric("repeat_times", 1)):
repeat += 1
if module and check_module:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册