From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amos Kong Subject: [PATCH 1/2] KVM-test: control: Fix of spliting augments Date: Wed, 25 May 2011 10:24:40 +0800 Message-ID: <20110525022440.3264.10258.stgit@t> References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: lmr@redhat.com, amwang@redhat.com, kvm@vger.kernel.org To: autotest@test.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:55850 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752785Ab1EYCWR (ORCPT ); Tue, 24 May 2011 22:22:17 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: ../../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 Signed-off-by: Amos Kong --- 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":