This way, tests can get information about Qemu and the modules that were installed by the 'build' test if needed. Signed-off-by: Eduardo Habkost <ehabkost@xxxxxxxxxx> --- client/tests/kvm/kvm_utils.py | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py index 6362490..1967ddd 100644 --- a/client/tests/kvm/kvm_utils.py +++ b/client/tests/kvm/kvm_utils.py @@ -121,6 +121,24 @@ class Env(UserDict.IterableUserDict): del self["vm__%s" % name] + def register_installer(self, installer): + """ + Register a installer that was just run + + The installer will be available for other tests, so that + information about the installed KVM modules and qemu-kvm can be used by + them. + """ + self['last_installer'] = installer + + + def previous_installer(self): + """ + Return the last installer that was registered + """ + return self.get('last_installer') + + class Params(UserDict.IterableUserDict): """ A dict-like object passed to every test. -- 1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html