Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
9fce0bcf
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,发现更多精彩内容 >>
未验证
提交
9fce0bcf
编写于
7月 09, 2020
作者:
Y
YongxueHong
提交者:
GitHub
7月 09, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2297 from qingwangrh/1838891_increase_vm_timeout_multi_disk
Improve virtio_scsi_variants test cases efficiency
上级
35532ba6
52852d9c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
8 deletion
+10
-8
qemu/tests/cfg/multi_disk.cfg
qemu/tests/cfg/multi_disk.cfg
+7
-6
qemu/tests/multi_disk.py
qemu/tests/multi_disk.py
+3
-2
未找到文件。
qemu/tests/cfg/multi_disk.cfg
浏览文件 @
9fce0bcf
...
...
@@ -5,6 +5,7 @@
remove_image = yes
remove_image_image1 = no
cmd_timeout = 1000
create_timeout = 1800
black_list = C:
vt_ulimit_nofile = 8192
labeltype = mbr
...
...
@@ -54,7 +55,7 @@
Windows:
# The CD-ROM has occupied a driver letter.
stg_image_num = 23
stg_image_size =
5
G
stg_image_size =
2
G
stg_image_boot = no
Linux:
image_size_image1 = 20G
...
...
@@ -124,13 +125,13 @@
stg_params += "drive_cache:writeback "
- multi_lun:
Linux:
stg_params += "drive_port:range(0,16383,
63
) "
stg_params += "drive_port:range(0,16383,
127
) "
Windows:
stg_params += "drive_port:range(0,255,
1
) "
stg_params += "drive_port:range(0,255,
4
) "
need_reboot = yes
need_shutdown = yes
- multi_scsiid_lun:
stg_params += "drive_unit:range(0,255,1,3) "
stg_params += "drive_unit:range(0,255,1
6
,3) "
Linux:
stg_params += "drive_port:range(0,16383,8191) "
Windows:
...
...
@@ -139,9 +140,9 @@
need_shutdown = yes
- multi_bus_scsiid_lun:
ide, virtio_blk:
stg_params += "drive_bus:range(0,15,
1
,9) "
stg_params += "drive_bus:range(0,15,
2
,9) "
virtio_scsi:
stg_params += "drive_bus:range(1,15,
1
,9) "
stg_params += "drive_bus:range(1,15,
2
,9) "
stg_params += "drive_unit:range(0,255,127,3) "
Linux:
stg_params += "drive_port:range(0,16383,8191) "
...
...
qemu/tests/multi_disk.py
浏览文件 @
9fce0bcf
...
...
@@ -201,8 +201,9 @@ def run(test, params, env):
error_context
.
context
(
"Start the guest with those disks"
,
logging
.
info
)
vm
=
env
.
get_vm
(
params
[
"main_vm"
])
vm
.
create
(
timeout
=
max
(
10
,
stg_image_num
),
params
=
params
)
login_timeout
=
int
(
params
.
get
(
"login_timeout"
,
360
))
create_timeout
=
int
(
params
.
get
(
"create_timeout"
,
1800
))
vm
.
create
(
timeout
=
create_timeout
,
params
=
params
)
session
=
vm
.
wait_for_login
(
timeout
=
login_timeout
)
n_repeat
=
int
(
params
.
get
(
"n_repeat"
,
"1"
))
...
...
@@ -338,7 +339,7 @@ def run(test, params, env):
test
.
fail
(
"Fail to shut down guest."
)
error_context
.
context
(
"Start the guest again."
,
logging
.
info
)
vm
=
env
.
get_vm
(
params
[
"main_vm"
])
vm
.
create
(
params
=
params
)
vm
.
create
(
timeout
=
create_timeout
,
params
=
params
)
session
=
vm
.
wait_for_login
(
timeout
=
login_timeout
)
error_context
.
context
(
"Delete partitions in guest."
,
logging
.
info
)
for
disk
in
disks
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录