Skip to content

Commit

Permalink
stress_kernel_compile: fix wget issues
Browse files Browse the repository at this point in the history
1.Install wget tool in guest
2.Set the progress parameter for wget
3.Set wget the download time to 40mins

Signed-off-by: Yiqian Wei <[email protected]>
  • Loading branch information
yiqianwei committed Aug 8, 2024
1 parent 895daca commit 78592ba
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 78592ba

Please sign in to comment.