# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1229324247 28800
# Node ID 90af383abf256547ae4285e5756f3d977309e708
# Parent d63674216d3f8798e7881ea3af5831fae20d35c4
[TEST] Fix input device for different platforms in SystemDevice/01_forward.py
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r d63674216d3f -r 90af383abf25
suites/libvirt-cim/cimtest/SystemDevice/01_forward.py
--- a/suites/libvirt-cim/cimtest/SystemDevice/01_forward.py Wed Dec 10 12:24:38 2008
-0800
+++ b/suites/libvirt-cim/cimtest/SystemDevice/01_forward.py Sun Dec 14 22:57:27 2008
-0800
@@ -98,7 +98,14 @@ def main():
if curr_cim_rev >= input_graphics_pool_rev:
input_cn = get_typed_class(virt, "PointingDevice")
graphics_cn = get_typed_class(virt, "DisplayController")
- exp_pllist[input_cn] = ['%s/mouse:ps2' % test_dom]
+ if virt == 'XenFV':
+ point_device = "%s/%s" %(test_dom, "mouse:usb")
+ elif virt == 'Xen':
+ point_device = "%s/%s" %(test_dom, "mouse:xen")
+ else:
+ point_device = "%s/%s" %(test_dom, "mouse:ps2")
+
+ exp_pllist[input_cn] = [point_device]
exp_pllist[graphics_cn] = ['%s/graphics' % test_dom]