提交 ae8b2f45 编写于 作者: X Xu Han

rh_kernel_update: make kernel build name configurable

Signed-off-by: NXu Han <xuhan@redhat.com>
上级 ea355bb4
...@@ -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"
......
...@@ -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.
先完成此消息的编辑!
想要评论请 注册