diff --git a/shared/cfg/base.cfg b/shared/cfg/base.cfg index 5d2ed2fb84..1850b4d2ad 100644 --- a/shared/cfg/base.cfg +++ b/shared/cfg/base.cfg @@ -699,7 +699,7 @@ Linux: stress_install_from_repo = "no" # param for stress tests stress_args = '--cpu 4 --io 4 --vm 2 --vm-bytes 256M' - download_url_stress = 'http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz' + download_url_stress = 'stress/stress-1.0.4.tar.gz' # param to enable/disable sosreport for guest enable_guest_sosreport = "no" diff --git a/shared/deps/stress/stress-1.0.4.tar.gz b/shared/deps/stress/stress-1.0.4.tar.gz new file mode 100644 index 0000000000..d2d0b2e1fb Binary files /dev/null and b/shared/deps/stress/stress-1.0.4.tar.gz differ diff --git a/virttest/utils_test/__init__.py b/virttest/utils_test/__init__.py index ff691a6478..c22fe4f71f 100755 --- a/virttest/utils_test/__init__.py +++ b/virttest/utils_test/__init__.py @@ -2089,6 +2089,8 @@ def __init__(self, stress_type, params, download_url="", make_cmds="", "stress_install_from_repo") == "yes" self.download_url = self.params.get('download_url_%s' % stress_type, download_url) + if not aurl.is_url(self.download_url) and not os.path.isabs(self.download_url): + self.download_url = utils_misc.get_path(data_dir.DEPS_DIR, self.download_url) self.download_type = self.params.get('download_type_%s' % stress_type, download_type) self.base_name = self.download_url.split("/")[-1]