
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1226391560 28800 # Node ID 7a96dcf0331613028fc8e57db0ad50578683e742 # Parent 9d24629f17819c31889e22f22492e998760d1394 [Test] Fix HostSystem/04_hs_to_EAPF.py for LXC This tc only verify MemoryPool for LXC now, follow up patch is to verify each type of device pool for LXC Signed-off-by: Guolian Yun <yunguol@cn.ibm.com> diff -r 9d24629f1781 -r 7a96dcf03316 suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py --- a/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Sun Nov 09 20:40:42 2008 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Tue Nov 11 00:19:20 2008 -0800 @@ -95,8 +95,13 @@ for p_inst in pool_assoc: CName = p_inst.classname InstID = p_inst['InstanceID'] - if exp_pllist[CName] == InstID: - in_pllist[CName] = InstID + if virt == 'LXC': + if CName == 'LXC_MemoryPool': + if exp_pllist[CName] == InstID: + in_pllist[CName] = InstID + else: + if exp_pllist[CName] == InstID: + in_pllist[CName] = InstID return in_pllist @@ -245,7 +250,10 @@ in_pllist = pool_init_list(virt, pool, net_name, default_pool_name) # One pool for each Device type, hence len should be 4 - exp_len = 4 + if virt == 'LXC': + exp_len = 1 + else: + exp_len = 4 status = check_len(an, in_pllist, qcn, exp_len) if status != PASS: vsxml.undefine(server)