diff options
author | Peter Mikus <pmikus@cisco.com> | 2018-03-22 13:21:05 +0100 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2018-03-28 08:07:06 +0000 |
commit | afd6aacb635a508f3ecc330dbe254b0ccf513bf1 (patch) | |
tree | 8f8f4993d071692420095856b970d92348031a7b /resources/libraries/python/QemuUtils.py | |
parent | 3eb25826bfbd594714f78a5aab2b0c4de1550450 (diff) |
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 <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python/QemuUtils.py')
-rw-r--r-- | resources/libraries/python/QemuUtils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/resources/libraries/python/QemuUtils.py b/resources/libraries/python/QemuUtils.py index 6426394bf4..ecce4e7a8b 100644 --- a/resources/libraries/python/QemuUtils.py +++ b/resources/libraries/python/QemuUtils.py @@ -677,6 +677,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 '' |