From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amos Kong Subject: [PATCH 2/2] KVM-test: kvm_vm.py: Add quotation marks for appended arguments Date: Wed, 25 May 2011 10:24:49 +0800 Message-ID: <20110525022449.3264.49173.stgit@t> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: amwang@redhat.com, kvm@vger.kernel.org To: autotest@test.kernel.org Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org Appended kernel cmdline should be involved by quotation marks. -append 'root=/dev/vda ro ..' Reported-by: Cong Wang Signed-off-by: Amos Kong --- client/virt/kvm_vm.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py index c9bb273..343488f 100644 --- a/client/virt/kvm_vm.py +++ b/client/virt/kvm_vm.py @@ -332,7 +332,7 @@ class VM(virt_vm.BaseVM): return " -initrd '%s'" % filename def add_kernel_cmdline(help, cmdline): - return " -append %s" % cmdline + return " -append '%s'" % cmdline def add_testdev(help, filename): return (" -chardev file,id=testlog,path=%s"