Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
ae8b2f45
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,发现更多精彩内容 >>
提交
ae8b2f45
编写于
12月 19, 2016
作者:
X
Xu Han
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rh_kernel_update: make kernel build name configurable
Signed-off-by:
N
Xu Han
<
xuhan@redhat.com
>
上级
ea355bb4
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
2 deletion
+6
-2
qemu/tests/cfg/rh_kernel_update.cfg
qemu/tests/cfg/rh_kernel_update.cfg
+2
-0
qemu/tests/rh_kernel_update.py
qemu/tests/rh_kernel_update.py
+4
-2
未找到文件。
qemu/tests/cfg/rh_kernel_update.cfg
浏览文件 @
ae8b2f45
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
# brewtag =
# brewtag =
# download_root_url =
# download_root_url =
# kernel_re =
# kernel_re =
# kernel_build_name =
# knl_dbginfo_re =
# knl_dbginfo_re =
# and so on.
# and so on.
- rh_kernel_update:
- rh_kernel_update:
...
@@ -30,6 +31,7 @@
...
@@ -30,6 +31,7 @@
method = brew
method = brew
# brew tag for search latest package via brewtool
# brew tag for search latest package via brewtool
brew_tag = "rhel-latest"
brew_tag = "rhel-latest"
kernel_build_name = "kernel"
install_virtio = no
install_virtio = no
verify_virtio = no
verify_virtio = no
virtio_drivers_list = "virtio virtio_ring virtio_pci"
virtio_drivers_list = "virtio virtio_ring virtio_pci"
...
...
qemu/tests/rh_kernel_update.py
浏览文件 @
ae8b2f45
...
@@ -88,8 +88,9 @@ def run(test, params, env):
...
@@ -88,8 +88,9 @@ def run(test, params, env):
rh_kernel_hint
=
"[\d+][^\s]+"
rh_kernel_hint
=
"[\d+][^\s]+"
kernel_re
=
params
.
get
(
"kernel_re"
)
kernel_re
=
params
.
get
(
"kernel_re"
)
tag
=
params
.
get
(
"brew_tag"
)
tag
=
params
.
get
(
"brew_tag"
)
kbuild_name
=
params
.
get
(
"kernel_build_name"
,
"kernel"
)
latest_pkg_cmd
=
"brew latest-pkg %s
kernel"
%
tag
latest_pkg_cmd
=
"brew latest-pkg %s
%s"
%
(
tag
,
kbuild_name
)
o
=
utils
.
system_output
(
latest_pkg_cmd
,
timeout
=
360
)
o
=
utils
.
system_output
(
latest_pkg_cmd
,
timeout
=
360
)
build
=
re
.
findall
(
"kernel[^\s]+"
,
o
)[
0
]
build
=
re
.
findall
(
"kernel[^\s]+"
,
o
)[
0
]
logging
.
debug
(
"Latest package on brew for tag %s is %s"
%
logging
.
debug
(
"Latest package on brew for tag %s is %s"
%
...
@@ -131,8 +132,9 @@ def run(test, params, env):
...
@@ -131,8 +132,9 @@ def run(test, params, env):
def
get_kernel_debuginfo_rpm_link
():
def
get_kernel_debuginfo_rpm_link
():
knl_dbginfo_re
=
params
.
get
(
"knl_dbginfo_re"
)
knl_dbginfo_re
=
params
.
get
(
"knl_dbginfo_re"
)
tag
=
params
.
get
(
"brew_tag"
)
tag
=
params
.
get
(
"brew_tag"
)
kbuild_name
=
params
.
get
(
"kernel_build_name"
,
"kernel"
)
latest_pkg_cmd
=
"brew latest-pkg %s
kernel"
%
tag
latest_pkg_cmd
=
"brew latest-pkg %s
%s"
%
(
tag
,
kbuild_name
)
o
=
utils
.
system_output
(
latest_pkg_cmd
,
timeout
=
360
)
o
=
utils
.
system_output
(
latest_pkg_cmd
,
timeout
=
360
)
build
=
re
.
findall
(
"kernel[^\s]+"
,
o
)[
0
]
build
=
re
.
findall
(
"kernel[^\s]+"
,
o
)[
0
]
logging
.
debug
(
"Latest package on brew for tag %s is %s"
%
logging
.
debug
(
"Latest package on brew for tag %s is %s"
%
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录