Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
079bc5a1
T
tp-qemu
项目概览
openeuler
/
tp-qemu
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tp-qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
079bc5a1
编写于
4月 14, 2020
作者:
Y
Yanan Fu
提交者:
GitHub
4月 14, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2192 from nanliu-r/re-use_chardev
virtio-serial:Keep chardev open to re-use
上级
d7aeabff
c147811d
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
11 addition
and
4 deletion
+11
-4
qemu/tests/cfg/virtio_port_hotplug.cfg
qemu/tests/cfg/virtio_port_hotplug.cfg
+7
-2
qemu/tests/virtio_port_hotplug.py
qemu/tests/virtio_port_hotplug.py
+4
-2
未找到文件。
qemu/tests/cfg/virtio_port_hotplug.cfg
浏览文件 @
079bc5a1
...
...
@@ -37,6 +37,11 @@
unplug_chardev_vs1 = no
unplug_chardev_vs2 = no
filesize = 100
variants:
- @default:
bg_test = no
repeat_times = 1
- with_bg_test:
Linux:
filesize = 2000
- unplug_port_chardev_pci:
...
...
qemu/tests/virtio_port_hotplug.py
浏览文件 @
079bc5a1
...
...
@@ -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,6 +62,7 @@ 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
if
bg_test
:
run_bg_test
(
test
,
params
,
vm
)
for
repeat
in
range
(
params
.
get_numeric
(
"repeat_times"
,
1
)):
repeat
+=
1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录