3 Mar 2011 00:28
[PATCH] KVM-test: Support qxl and vga parameters in make_qemu_command.
Amos Kong <akong <at> redhat.com>
2011-03-02 23:28:45 GMT
2011-03-02 23:28:45 GMT
The behave is difference on RHEL6.0 and RHEL5.
On RHEL5, qxl and vag are two parameters. But on RHEL6, qxl
is one option in vga.
This patch could work on RHEL5 and RHEL6 hosts.
On RHEL6, if we set qxl and vga together in tests_base.cfg,
vga will be set to qxl, no matter what you set to vga.
Signed-off-by: Feng Yang <fyang <at> redhat.com>
Signed-off-by: Amos Kong <akong <at> redhat.com>
---
client/tests/kvm/kvm_vm.py | 38 ++++++++++++++++++++++++++++++++
client/tests/kvm/tests_base.cfg.sample | 4 +++
2 files changed, 42 insertions(+), 0 deletions(-)
diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index 41f7491..da3142f 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
<at> <at> -335,6 +335,7 <at> <at> class VM:
if not glob.glob("/tmp/*%s" % self.instance):
break
+ self.spice_port = 8000
self.name = name
self.params = params
self.root_dir = root_dir
<at> <at> -553,6 +554,26 <at> <at> class VM:
def add_pcidevice(help, host):
return " -pcidevice host='%s'" % host
(Continue reading)
RSS Feed