From patchwork Wed May 25 02:24:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amos Kong X-Patchwork-Id: 814692 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4P2MKHx008810 for ; Wed, 25 May 2011 02:22:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753223Ab1EYCWR (ORCPT ); Tue, 24 May 2011 22:22:17 -0400 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 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4P2MG3M026866 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 24 May 2011 22:22:16 -0400 Received: from [127.0.0.1] (dhcp-8-167.nay.redhat.com [10.66.8.167]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4P2MDKS002516; Tue, 24 May 2011 22:22:14 -0400 Subject: [PATCH 1/2] KVM-test: control: Fix of spliting augments To: autotest@test.kernel.org From: Amos Kong Cc: lmr@redhat.com, amwang@redhat.com, kvm@vger.kernel.org Date: Wed, 25 May 2011 10:24:40 +0800 Message-ID: <20110525022440.3264.10258.stgit@t> In-Reply-To: References: User-Agent: StGit/0.15 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 25 May 2011 02:22:21 +0000 (UTC) ../../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(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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":