yunguol(a)cn.ibm.com wrote:
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1224470190 25200
# Node ID d83baa71965d37027e1ef08ab79c72c177c0f9b7
# Parent a3d9c0a81c27471418993b7c8f907f0b95f79e63
[TEST] Update VSSD.02 to call new GetInstance
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r a3d9c0a81c27 -r d83baa71965d suites/libvirt-cim/cimtest/VSSD/02_bootldr.py
--- a/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Wed Oct 15 19:13:10 2008 -0700
+++ b/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Sun Oct 19 19:36:30 2008 -0700
@@ -60,8 +60,8 @@ def main():
try:
key_list = { 'InstanceID' : instIdval }
- system = enumclass.getInstance(options.ip, \
- enumclass.Xen_VirtualSystemSettingData, key_list)
+ system = enumclass.GetInstance(options.ip, \
+ "Xen_VirtualSystemSettingData", key_list)
You can remove the slash here.
Also, can you remove the keyname variable in the tc which is not at all
used anywhere for the verification.
The tc fails with the following error for Xen:
VSSD - 02_bootldr.py: FAIL
ERROR - AttributeError : 'str' object has no attribute 'Bootloader'
Traceback (most recent call last):
File "./lib/XenKvmLib/const.py", line 116, in do_try
File "02_bootldr.py", line 50, in main
xmlfile.set_bootloader(options.ip, gtype=0)
File "./lib/XenKvmLib/vxml.py", line 567, in set_bootloader
AttributeError: 'str' object has no attribute 'Bootloader'
ERROR - None
name = system.ElementName
if name == test_dom :
_______________________________________________
Libvirt-cim mailing list
Libvirt-cim(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim