From: Amos Kong <akong@redhat.com>
To: autotest@test.kernel.org
Cc: lmr@redhat.com, amwang@redhat.com, kvm@vger.kernel.org
Subject: [PATCH 1/2] KVM-test: control: Fix of spliting augments
Date: Wed, 25 May 2011 10:24:40 +0800 [thread overview]
Message-ID: <20110525022440.3264.10258.stgit@t> (raw)
In-Reply-To: <BANLkTikmAAF8AP6-bZakZh7hJdfSC1CF9A@mail.gmail.com>
../../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 <amwang@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
---
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":
next parent reply other threads:[~2011-05-25 2:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <BANLkTikmAAF8AP6-bZakZh7hJdfSC1CF9A@mail.gmail.com>
2011-05-25 2:24 ` Amos Kong [this message]
2011-05-25 2:24 ` [PATCH 2/2] KVM-test: kvm_vm.py: Add quotation marks for appended arguments Amos Kong
2011-05-25 3:04 ` Cong Wang
2011-05-25 20:07 ` Lucas Meneghel Rodrigues
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=20110525022440.3264.10258.stgit@t \
--to=akong@redhat.com \
--cc=amwang@redhat.com \
--cc=autotest@test.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=lmr@redhat.com \
/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