From 095b162010491a4759e05ca46f0e5a47e8ace141 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Thu, 22 Mar 2018 13:21:05 +0100 Subject: Optimize Qemu installation to speed up vhost tests Currently Qemu is being installed if there is a change of qsz parameter between tests/suites. Qemu is installed always into the same directory. This patch changes the default behavior to install qemu over and install pathced version to separate directory. It also disables force install. Change-Id: I0d7493a02b026a6ae4a5ea8bacf54656de9db567 Signed-off-by: Peter Mikus --- resources/libraries/python/QemuUtils.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'resources/libraries/python') diff --git a/resources/libraries/python/QemuUtils.py b/resources/libraries/python/QemuUtils.py index a8c26d6898..42ccb8c9dd 100644 --- a/resources/libraries/python/QemuUtils.py +++ b/resources/libraries/python/QemuUtils.py @@ -688,6 +688,10 @@ class QemuUtils(object): ssh.connect(node) directory = ' --directory={0}'.format(Constants.QEMU_INSTALL_DIR) + if apply_patch: + directory += '-patch' + else: + directory += '-base' version = ' --version={0}'.format(Constants.QEMU_INSTALL_VERSION) force = ' --force' if force_install else '' patch = ' --patch' if apply_patch else '' -- cgit 1.2.3-korg