Skip to content

Commit

Permalink
Merge pull request #4119 from yiqianwei/bz2501
Browse files Browse the repository at this point in the history
stress_kernel_compile: fix wget issues
  • Loading branch information
yanan-fu authored Aug 8, 2024
2 parents 895daca + 78592ba commit 7dc17a4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions qemu/tests/stress_kernel_compile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from virttest import utils_test, env_process
from virttest.staging import utils_memory
from virttest import utils_package


def run(test, params, env):
Expand All @@ -20,10 +21,14 @@ def kernelcompile(session, vm_name):
ip = vm.get_address()
path = params.get("download_url")
test.log.info("kernel path = %s", path)
get_kernel_cmd = "wget %s" % path
get_kernel_cmd = "wget %s --progress=none" % path
install_status = utils_package.package_install("wget", session,
timeout=60)
if not install_status:
test.error("Failed to install wget.")
try:
status, output = session.cmd_status_output(get_kernel_cmd,
timeout=240)
timeout=2400, safe=True)
if status != 0:
test.log.error(output)
test.fail("Fail to download the kernel in %s" % vm_name)
Expand Down

0 comments on commit 7dc17a4

Please sign in to comment.