KVM test: Introducing Opensuse and SLES unattended installs
PATCH 1/1 KVM test: Introducing Opensuse and SLES unattended installs
From: yogi <[email protected]>
Adds support to do unattended install of Opensuse11, patch adds new autoyast files (OpenSUSE.xml and SLES-11.xml) and creates entries for unattended install in tests_base.cfg. The patch also introduces an optional parameter, post_install_delay in the config file that allows people to adjust a wait time. In this particular case, the timeout is for autoyast to finish configuration.
Signed-off-by Yogananth Subramanian <[email protected]>
Signed-off-by Lucas Meneghel Rodrigues <[email protected]>
--- client/tests/kvm/tests/unattended_install.py | 5 + client/tests/kvm/tests_base.cfg.sample | 136 +++- client/tests/kvm/unattended/OpenSUSE-11.xml | 251 +++++++ client/tests/kvm/unattended/SLES-11.xml | 898 ++++++++++++++++++++++++++ 4 files changed, 1261 insertions(+), 29 deletions(-) create mode 100644 client/tests/kvm/unattended/OpenSUSE-11.xml create mode 100644 client/tests/kvm/unattended/SLES-11.xml
client/tests/kvm/tests/unattended_install.py +5 -0
@@ -18,6 +18,7 @@ def run_unattended_install(test, params, env): port = vm.get_port(int(params.get("guest_port_unattended_install"))) addr = ('localhost', port) + post_install_delay = int(params.get("post_install_delay")) install_timeout = float(params.get("timeout", 3000)) logging.info("Starting unattended install watch process. "
@@ -31,6 +32,10 @@ def run_unattended_install(test, params, env): client.connect(addr) msg = client.recv(1024) if msg == 'done': + if post_install_delay: + logging.debug("Post install delay specified, " + "waiting %ss...", post_install_delay) + time.sleep(post_install_delay) break except socket.error: pass
client/tests/kvm/tests_base.cfg.sample +107 -29
160 lines not on this page · raw message
client/tests/kvm/unattended/OpenSUSE-11.xml new file +251 -0
251 lines not on this page · raw message
client/tests/kvm/unattended/SLES-11.xml new file +898 -0
898 lines not on this page · raw message
Signature · 1 line
1.6.6.1