From patchwork Fri Jun 5 20:46:27 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 28300 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 n55Kkjbl016141 for ; Fri, 5 Jun 2009 20:46:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752395AbZFEUqk (ORCPT ); Fri, 5 Jun 2009 16:46:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752734AbZFEUqj (ORCPT ); Fri, 5 Jun 2009 16:46:39 -0400 Received: from mx2.redhat.com ([66.187.237.31]:59771 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752153AbZFEUqj (ORCPT ); Fri, 5 Jun 2009 16:46:39 -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 n55KkfBc003220; Fri, 5 Jun 2009 16:46:41 -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 n55KkdmC017157; Fri, 5 Jun 2009 16:46:40 -0400 Received: from localhost.localdomain (vpn-10-165.bos.redhat.com [10.16.10.165]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n55KkZ41015832; Fri, 5 Jun 2009 16:46:37 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues , David Huff Subject: [KVM-AUTOTEST PATCH 1/8] kvm_config: Allow for "=" in the value of a config parameter Date: Fri, 5 Jun 2009 17:46:27 -0300 Message-Id: <1244234794-7844-2-git-send-email-lmr@redhat.com> In-Reply-To: <1244234794-7844-1-git-send-email-lmr@redhat.com> References: <1244234794-7844-1-git-send-email-lmr@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 fix modifies kvm_config.split_and_strip so it will only split once per line. example: kernel_args = "ks=floppy console=ttyS0 noacpi" Signed-off-by: David Huff --- client/tests/kvm/kvm_config.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm_config.py b/client/tests/kvm/kvm_config.py index 8b6ab15..40f16f1 100755 --- a/client/tests/kvm/kvm_config.py +++ b/client/tests/kvm/kvm_config.py @@ -136,7 +136,7 @@ class config: @param str: String that will be processed @param sep: Separator that will be used to split the string """ - 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("\"\'")