提交 94a0f994 编写于 作者: C Cleber Rosa 提交者: Lucas Meneghel Rodrigues

tests/autotest_regression.py: do not depend on wget

The JeOS image itself has no wget preinstalled, and other images
that could be used with this may share the same characteristic.

So, use plain python (and ugly command line) to download the
installer script.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 0fab3830
......@@ -49,9 +49,16 @@ def run_autotest_regression(test, params, env):
step1 = "autotest-server-install"
try:
installer_file = "install-autotest-server.sh"
installer_url = ("https://raw.github.com/autotest/autotest/master"
"/contrib/%s" % installer_file)
# Download the install script and execute it
download_cmd = ("wget https://raw.github.com/autotest/autotest/master"
"/contrib/install-autotest-server.sh")
download_cmd = ("python -c 'from urllib2 import urlopen; "
"r = urlopen(\"%s\"); "
"f = open(\"%s\", \"w\"); "
"f.write(r.read())'" % (installer_url,
installer_file))
session_server.cmd(download_cmd)
permission_cmd = ("chmod +x install-autotest-server.sh")
session_server.cmd(permission_cmd)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册