../../bin/autotest control --args='only=boot kernel_cmdline="root=/dev/vda ro 
quite" only=qcow2'

original result:
only boot
kernel_cmdline="root = /dev/vda ro quite"
only qcow2'

new result:
only boot
kernel_cmdline="root=/dev/vda ro quite"
only qcow2'

Reported-by: Cong Wang <[email protected]>
Signed-off-by: Amos Kong <[email protected]>
---
 client/tests/kvm/control |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm/control b/client/tests/kvm/control
index c887a3e..959d2bc 100644
--- a/client/tests/kvm/control
+++ b/client/tests/kvm/control
@@ -55,7 +55,7 @@ if args:
     # We get test parameters from command line
     for arg in args:
         try:
-            (key, value) = re.findall("(.*)=(.*)", arg)[0]
+            (key, value) = re.findall("^(\w+)=(.*)", arg)[0]
             if key == "only":
                 str += "only %s\n" % value
             elif key == "no":

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to