Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
33dbcb6d
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,发现更多精彩内容 >>
提交
33dbcb6d
编写于
9月 16, 2013
作者:
L
Lucas Meneghel Rodrigues
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More PEP8 fixes
Signed-off-by:
N
Lucas Meneghel Rodrigues
<
lmr@redhat.com
>
上级
0ec42db3
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
8 deletion
+9
-8
qemu/tests/guest_memory_dump_analysis.py
qemu/tests/guest_memory_dump_analysis.py
+9
-8
未找到文件。
qemu/tests/guest_memory_dump_analysis.py
浏览文件 @
33dbcb6d
...
...
@@ -16,20 +16,21 @@ import os
import
gzip
import
threading
REQ_GUEST_MEM
=
4096
# exact size of guest RAM required
REQ_GUEST_ARCH
=
"x86_64"
# the only supported guest arch
REQ_GUEST_DF
=
6144
# minimum guest disk space required
REQ_GUEST_MEM
=
4096
# exact size of guest RAM required
REQ_GUEST_ARCH
=
"x86_64"
# the only supported guest arch
REQ_GUEST_DF
=
6144
# minimum guest disk space required
# after package installation
LONG_TIMEOUT
=
10
*
60
# timeout for long operations
VMCORE_BASE
=
"vmcore"
# basename of the host-side file the
LONG_TIMEOUT
=
10
*
60
# timeout for long operations
VMCORE_BASE
=
"vmcore"
# basename of the host-side file the
# guest vmcore is written to, .gz
# suffix will be appended. No
# metacharacters or leading dashes
# please.
VMCORE_FD_NAME
=
"vmcore_fd"
# fd identifier used in the monitor
CRASH_SCRIPT
=
"crash.cmd"
# guest-side filename of the minimal
VMCORE_FD_NAME
=
"vmcore_fd"
# fd identifier used in the monitor
CRASH_SCRIPT
=
"crash.cmd"
# guest-side filename of the minimal
# crash script
def
run_guest_memory_dump_analysis
(
test
,
params
,
env
):
"""
Verify the vmcore written by dump-guest-memory by a big guest.
...
...
@@ -259,7 +260,7 @@ def run_guest_memory_dump_analysis(test, params, env):
"%s"
%
(
CRASH_SCRIPT
,
guest_plain
))
logging
.
debug
(
"%s"
,
output
)
if
(
string
.
find
(
output
,
"crash:"
)
>=
0
or
string
.
find
(
output
,
"WARNING:"
)
>=
0
):
string
.
find
(
output
,
"WARNING:"
)
>=
0
):
raise
error
.
TestFail
(
"vmcore corrupt"
)
vm
=
env
.
get_vm
(
params
[
"main_vm"
])
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录