From patchwork Tue May 26 15:49:43 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Huff X-Patchwork-Id: 26046 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4QFojkO029830 for ; Tue, 26 May 2009 15:50:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753678AbZEZPuk (ORCPT ); Tue, 26 May 2009 11:50:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751689AbZEZPuk (ORCPT ); Tue, 26 May 2009 11:50:40 -0400 Received: from mx2.redhat.com ([66.187.237.31]:46556 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751248AbZEZPuk (ORCPT ); Tue, 26 May 2009 11:50:40 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n4QFogdo002974 for ; Tue, 26 May 2009 11:50:42 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n4QFoLbE016443; Tue, 26 May 2009 11:50:21 -0400 Received: from localhost.localdomain (dhcp231-89.rdu.redhat.com [10.11.231.89]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n4QFoLMw018158; Tue, 26 May 2009 11:50:21 -0400 From: David Huff To: kvm@vger.kernel.org Cc: David Huff Subject: [PATCH][KVM_AUTOTEST] Fix to allow for "=" in the "value" of a config parameter. Date: Tue, 26 May 2009 11:49:43 -0400 Message-Id: <1243352983-29213-1-git-send-email-dhuff@redhat.com> In-Reply-To: <4A1C0D16.6090402@redhat.com> References: <4A1C0D16.6090402@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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("\"\'")