public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: David Huff <dhuff@redhat.com>
To: kvm@vger.kernel.org
Cc: David Huff <dhuff@redhat.com>
Subject: [PATCH][KVM_AUTOTEST] Fix to allow for "=" in the "value" of a config parameter.
Date: Tue, 26 May 2009 11:49:43 -0400	[thread overview]
Message-ID: <1243352983-29213-1-git-send-email-dhuff@redhat.com> (raw)
In-Reply-To: <4A1C0D16.6090402@redhat.com>

example: kernel_args = "ks=floppy console=ttyS0 noacpi"

fix modifies kvm_config.split_and_strip so it will only split once per line.
---
 client/tests/kvm_runtest_2/kvm_config.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm_runtest_2/kvm_config.py b/client/tests/kvm_runtest_2/kvm_config.py
index 4a1e7b4..c4fe6ea 100755
--- a/client/tests/kvm_runtest_2/kvm_config.py
+++ b/client/tests/kvm_runtest_2/kvm_config.py
@@ -94,7 +94,7 @@ class config:
 
     def split_and_strip(self, str, sep="="):
         """Split str and strip quotes from the resulting parts."""
-        temp = str.split(sep)
+        temp = str.split(sep, 1)
         for i in range(len(temp)):
             temp[i] = temp[i].strip()
             temp[i] = temp[i].strip("\"\'")
-- 
1.6.0.6


  reply	other threads:[~2009-05-26 15:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <558076627.224761242989864526.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-05-22 11:05 ` [PATCH] [KVM_Autotest] Fix to allow for "=" in the "value" of a config parameter Michael Goldish
2009-05-24 12:14   ` Avi Kivity
2009-05-26 15:39     ` David Huff
2009-05-26 15:49       ` David Huff [this message]
2009-05-21 15:36 David Huff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1243352983-29213-1-git-send-email-dhuff@redhat.com \
    --to=dhuff@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox