Skip to contentSkip to conversation

KVM test: Make kvm_config.py to use autotest logging

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Aug 9, 2009 KVM

lore
Share & tools
lore
#0 lore raw

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

---
 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
index 5c5d424..f894bf9 100644
@@ -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