Should be set to "yes" to enable testdev.
Signed-off-by: Michael Goldish <[email protected]>
---
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 87b037f..7b1fc05 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -290,6 +290,10 @@ class VM:
def add_kernel_cmdline(help, cmdline):
return " -append %s" % cmdline
+ def add_testdev(help, filename):
+ return (" -chardev file,id=testlog,path=%s"
+ " -device testdev,chardev=testlog" % filename)
+
# End of command line option wrappers
if name is None: name = self.name
@@ -424,6 +428,9 @@ class VM:
elif params.get("uuid"):
qemu_cmd += add_uuid(help, params.get("uuid"))
+ if params.get("testdev") == "yes":
+ qemu_cmd += add_testdev(help, self.get_testlog_filename())
+
# If the PCI assignment step went OK, add each one of the PCI assigned
# devices to the qemu command line.
if self.pci_assignable:
--
1.7.0.1
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html