From patchwork Wed May 19 09:20:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 100818 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4J9FeKA032308 for ; Wed, 19 May 2010 09:15:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753629Ab0ESJPi (ORCPT ); Wed, 19 May 2010 05:15:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35078 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753190Ab0ESJPh (ORCPT ); Wed, 19 May 2010 05:15:37 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4J9FZ8U008910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 19 May 2010 05:15:36 -0400 Received: from dhcp-91-25.nay.redhat.com (dhcp-91-25.nay.redhat.com [10.66.91.25]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4J9FXsu021168; Wed, 19 May 2010 05:15:34 -0400 Subject: [PATCH 1/3] KVM test: Add the support of kernel and initrd option for qemu-kvm To: lmr@redhat.com, autotest@test.kernel.org From: Jason Wang Cc: kvm@vger.kernel.org Date: Wed, 19 May 2010 17:20:36 +0800 Message-ID: <20100519092036.13721.59023.stgit@dhcp-91-25.nay.redhat.com> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 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.3 (demeter.kernel.org [140.211.167.41]); Wed, 19 May 2010 09:15:40 +0000 (UTC) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index c203e14..2515859 100755 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py @@ -288,6 +288,16 @@ class VM: tftp = kvm_utils.get_path(root_dir, tftp) qemu_cmd += " -tftp %s" % tftp + kernel = params.get("kernel") + if kernel: + kernel = kvm_utils.get_path(root_dir, kernel) + qemu_cmd += " -kernel %s" % kernel + + initrd = params.get("initrd") + if initrd: + initrd = kvm_utils.get_path(root_dir, initrd) + qemu_cmd += " -initrd %s" % initrd + extra_params = params.get("extra_params") if extra_params: qemu_cmd += " %s" % extra_params