It may be used on cases where KVM is expected to be already present in the system, but other methods are going to be used (such as the module loading code).
Signed-off-by: Eduardo Habkost <[email protected]> --- client/tests/kvm/kvm/installer.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm/installer.py b/client/tests/kvm/kvm/installer.py index e9282e7..494e6c5 100644 --- a/client/tests/kvm/kvm/installer.py +++ b/client/tests/kvm/kvm/installer.py @@ -612,6 +612,13 @@ class GitInstaller(SourceDirInstaller): if self.save_results: save_build(self.srcdir, self.results_dir) +class PreInstalledKvm(BaseInstaller): + def install(self): + logging.info("Expecting KVM to be already installed. Doing nothing") + + # load_modules() will use the stock modules: + load_stock_modules = True + installer_classes = { 'localsrc':SourceDirInstaller, @@ -621,6 +628,7 @@ installer_classes = { 'git':GitInstaller, 'yum':YumInstaller, 'koji':KojiInstaller, + 'preinstalled':PreInstalledKvm, } def _installer_class(install_mode): -- 1.7.3.2 _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
