Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
c6fc01b5
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,发现更多精彩内容 >>
未验证
提交
c6fc01b5
编写于
11月 07, 2018
作者:
Q
Qianqian Zhu
提交者:
GitHub
11月 07, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1540 from rayx/pci_devices_test_timing_issue
pci_devices: run "info qtree" after the guest boots up
上级
c63f696c
a057c85f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
7 deletion
+4
-7
qemu/tests/pci_devices.py
qemu/tests/pci_devices.py
+4
-7
未找到文件。
qemu/tests/pci_devices.py
浏览文件 @
c6fc01b5
...
@@ -8,7 +8,6 @@ import logging
...
@@ -8,7 +8,6 @@ import logging
import
random
import
random
import
re
import
re
import
six
import
six
import
time
from
virttest
import
env_process
from
virttest
import
env_process
from
virttest
import
error_context
from
virttest
import
error_context
...
@@ -356,11 +355,12 @@ def run(test, params, env):
...
@@ -356,11 +355,12 @@ def run(test, params, env):
vm
=
env
.
get_vm
(
params
[
"main_vm"
])
vm
=
env
.
get_vm
(
params
[
"main_vm"
])
# PCI devices are initialized by firmware, which might require some time
# PCI devices are initialized by firmware, which might require some time
# to setup. Wait
5s before getting the qtree
.
# to setup. Wait
until the guest boots up
.
time
.
sleep
(
5
)
error_context
.
context
(
"Verify VM booted properly."
,
logging
.
info
)
qtree
=
qemu_qtree
.
QtreeContainer
()
session
=
vm
.
wait_for_login
()
error_context
.
context
(
"Verify qtree vs. qemu devices"
,
logging
.
info
)
error_context
.
context
(
"Verify qtree vs. qemu devices"
,
logging
.
info
)
qtree
=
qemu_qtree
.
QtreeContainer
()
_info_qtree
=
vm
.
monitor
.
info
(
'qtree'
,
False
)
_info_qtree
=
vm
.
monitor
.
info
(
'qtree'
,
False
)
qtree
.
parse_info_qtree
(
_info_qtree
)
qtree
.
parse_info_qtree
(
_info_qtree
)
info_qdev
=
process_qdev
(
vm
.
devices
)
info_qdev
=
process_qdev
(
vm
.
devices
)
...
@@ -374,9 +374,6 @@ def run(test, params, env):
...
@@ -374,9 +374,6 @@ def run(test, params, env):
logging
.
error
(
err
)
logging
.
error
(
err
)
errors
+=
"qdev vs. qtree, "
errors
+=
"qdev vs. qtree, "
error_context
.
context
(
"Verify VM booted properly."
,
logging
.
info
)
session
=
vm
.
wait_for_login
()
error_context
.
context
(
"Verify lspci vs. qtree"
,
logging
.
info
)
error_context
.
context
(
"Verify lspci vs. qtree"
,
logging
.
info
)
if
params
.
get
(
'lspci_cmd'
):
if
params
.
get
(
'lspci_cmd'
):
_info_lspci
=
session
.
cmd_output
(
params
[
'lspci_cmd'
])
_info_lspci
=
session
.
cmd_output
(
params
[
'lspci_cmd'
])
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录