KVM test: Make kvm_config.py to use autotest logging
PATCH 1/1 KVM test: Make kvm_config.py to use autotest logging
Make kvm_config.py be able to use the autotest logging infrastructure even in stand alone mode. This way we get the ability of having selective debug mode, and just use the cleaner logging.[debuglevel]('message') syntax instead of resorting to hardcoded [LEVEL] strings in any message.
Also, make kvm_config use the optparse library to get options. Script usage:
Usage: kvm_config.py [options]
Options:
-h, --help show this help message and exit -f, --file path to a config file that will be parsed.
If not specified, will parse kvm_tests.cfg located inside the kvm test dir.
--verbose include debug messages in console output
Signed-off-by Lucas Meneghel Rodrigues <[email protected]>
--- client/tests/kvm/control | 4 +- client/tests/kvm/kvm_config.py | 58 ++++++++++++++++++++++++--------------- 2 files changed, 38 insertions(+), 24 deletions(-)
client/tests/kvm/control +2 -2
@@ -73,12 +73,12 @@ params = { "name": "kvm_install", "shortname": "kvm_install", "type": "kvm_install", - "mode": "release", + #"mode": "release", #"mode": "snapshot", #"mode": "localtar", #"mode": "localsrc", #"mode": "git", - #"mode": "noinstall", + "mode": "noinstall", ## Are we going to load modules built by this test? ## Defaults to 'yes', so if you are going to provide only userspace code to
client/tests/kvm/kvm_config.py +36 -22
105 lines not on this page · raw message
Signature · 1 line
1.6.2.5