It is a clearer name for the config file, especially if we use the same parameter conventions (and parameter handling code) for other tests.
The old 'mode' parameter still works, so existing config files won't break. Signed-off-by: Eduardo Habkost <[email protected]> --- client/tests/kvm/kvm/installer.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm/installer.py b/client/tests/kvm/kvm/installer.py index 8da89ca..7578784 100644 --- a/client/tests/kvm/kvm/installer.py +++ b/client/tests/kvm/kvm/installer.py @@ -617,6 +617,9 @@ def _installer_class(install_mode): return c def make_installer(test, params): - mode = params.get("mode") + # priority: + # - 'install_mode' param + # - 'mode' param + mode = params.get("install_mode", params.get("mode")) klass = _installer_class(mode) return klass(mode, test, params) -- 1.7.3.2 _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
