public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] KVM test: support kernel -append command line options
@ 2010-06-24 23:33 Lucas Meneghel Rodrigues
  2010-06-24 23:33 ` [PATCH 2/5] KVM test: add boolean 'testdev' VM parameter for RHEL-6 style unit tests Lucas Meneghel Rodrigues
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Lucas Meneghel Rodrigues @ 2010-06-24 23:33 UTC (permalink / raw)
  To: autotest, mgoldish; +Cc: kvm

Signed-off-by: Michael Goldish <mgoldish@redhat.com>
---
 client/tests/kvm/kvm_vm.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index 966fb3c..87b037f 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -287,6 +287,9 @@ class VM:
         def add_initrd(help, filename):
             return " -initrd '%s'" % filename
 
+        def add_kernel_cmdline(help, cmdline):
+            return " -append %s" % cmdline
+
         # End of command line option wrappers
 
         if name is None: name = self.name
@@ -394,6 +397,10 @@ class VM:
             kernel = kvm_utils.get_path(root_dir, kernel)
             qemu_cmd += add_kernel(help, kernel)
 
+        kernel_cmdline = params.get("kernel_cmdline")
+        if kernel_cmdline:
+            qemu_cmd += add_kernel_cmdline(help, kernel_cmdline)
+
         initrd = params.get("initrd")
         if initrd:
             initrd = kvm_utils.get_path(root_dir, initrd)
-- 
1.7.0.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-25 14:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-24 23:33 [PATCH 1/5] KVM test: support kernel -append command line options Lucas Meneghel Rodrigues
2010-06-24 23:33 ` [PATCH 2/5] KVM test: add boolean 'testdev' VM parameter for RHEL-6 style unit tests Lucas Meneghel Rodrigues
2010-06-24 23:33 ` [PATCH 3/5] KVM test: add wrapper for RHEL-6 style unittests Lucas Meneghel Rodrigues
2010-06-25 14:26   ` Michael Goldish
2010-06-24 23:33 ` [PATCH 4/5] KVM test: add sample RHEL-6 style unittest config file Lucas Meneghel Rodrigues
2010-06-24 23:33 ` [PATCH 5/5] KVM test: Make it possible to run VMs without NICs Lucas Meneghel Rodrigues
2010-06-25 10:03   ` Michael Goldish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox