
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1231816243 28800 # Node ID 816ef67322b8cbcbe3583d2d35c0378b182a5433 # Parent 43bf01b82ce9f627af1b5db55922b0584cd0e3b4 [TEST] #2 Update RASD-05_disk_rasd_emu_type.py to support Xen, skip adding CDROM devices while emu_type=1 Updates from 1 to 2: Skip Emu Type = 1 for Xen guests becasue that Xen doesn't support adding CDROM devices Signed-off-by: Guolian Yun<yunguol@cn.ibm.com> diff -r 43bf01b82ce9 -r 816ef67322b8 suites/libvirt-cim/cimtest/RASD/05_disk_rasd_emu_type.py --- a/suites/libvirt-cim/cimtest/RASD/05_disk_rasd_emu_type.py Mon Jan 12 08:22:47 2009 -0800 +++ b/suites/libvirt-cim/cimtest/RASD/05_disk_rasd_emu_type.py Mon Jan 12 19:10:43 2009 -0800 @@ -30,7 +30,7 @@ from CimTest.Globals import logger from XenKvmLib.const import get_provider_version -SUPPORTED_TYPES = ['KVM'] +SUPPORTED_TYPES = ['KVM', 'Xen'] default_dom = 'test_domain' libvirt_em_type_changeset = 737 @@ -42,7 +42,10 @@ if curr_cim_rev < libvirt_em_type_changeset: return SKIP - emu_types = [0, 1] + if options.virt == 'Xen': + emu_types = [0] + else: + emu_types = [0, 1] try: for exp_emu_type in emu_types: virt_xml = get_class(options.virt)