<br><tt><font size=2>libvirt-cim-bounces@redhat.com wrote on 2009-02-06
15:13:53:<br>
<br>
> <br>
> <br>
> yunguol@cn.ibm.com wrote:<br>
> > # HG changeset patch<br>
> > # User Guolian Yun <yunguol@cn.ibm.com><br>
> > # Date 1233825583 28800<br>
> > # Node ID 3fc2b8a203339c6a59b5f0e2a159e3e0a802ea6d<br>
> > # Parent  edfa908a60d058c7f1ba7394bd1d818999802287<br>
> > [TEST Split lines to 80-char width limit in <br>
> SettingsDefineCapabilities/01_forward.py<br>
> ><br>
> > This tc fails because of the number of RASD objects, I've sent
a <br>
> patch with fix<br>
> > Tested for KVM/LXC with current sources<br>
> ><br>
> > Signed-off-by: Guolian Yun<yunguol@cn.ibm.com><br>
> ><br>
> > diff -r edfa908a60d0 -r 3fc2b8a20333 suites/libvirt-<br>
> cim/cimtest/SettingsDefineCapabilities/01_forward.py<br>
> > --- a/suites/libvirt-<br>
> cim/cimtest/SettingsDefineCapabilities/01_forward.py   Tue Feb
03 <br>
> 09:37:05 2009 -0800<br>
> > +++ b/suites/libvirt-<br>
> cim/cimtest/SettingsDefineCapabilities/01_forward.py   Thu Feb
05 <br>
> 01:19:43 2009 -0800<br>
> > @@ -92,10 +92,15 @@<br>
> >          Creating the lists that will
be used for comparisons.<br>
> >      """<br>
> >      <br>
> > +    memrasd = get_typed_class(virt, "MemResourceAllocationSettingData")<br>
> > +    diskrasd = get_typed_class(virt, "DiskResourceAllocationSettingData")<br>
> > +    netrasd = get_typed_class(virt, "NetResourceAllocationSettingData")<br>
> > +    procrasd = get_typed_class(virt, "ProcResourceAllocationSettingData")<br>
> > + <br>
> >   <br>
> Daisy,<br>
> Instead of manually adding the vaious RASD's we could probably use
the <br>
> enum_rasds here.<br>
> The advantage will be that we need not have to be bothered to add
a new <br>
> RASD when that happens.<br>
> There are # of test cases which require something similar to what
you <br>
> have modified here.<br>
> For ex: you can refer the SettingsDefine/02_reverse.py tc as a reference.</font></tt>
<br>
<br><tt><font size=2>   Good point. There is no time to fix it
today. May I send a patch with fix</font></tt>
<br><tt><font size=2>   next Monday?</font></tt>
<br>
<br><tt><font size=2>   Thanks!<br>
> <br>
> >      if virt == 'LXC':<br>
> >          instlist = [ pool[1].InstanceID
]<br>
> > -        cllist = [ get_typed_class(virt,
<br>
> "MemResourceAllocationSettingData") ]<br>
> > -        rtype = { get_typed_class(virt,
<br>
> "MemResourceAllocationSettingData")  :  4 }<br>
> > +        cllist = [ memrasd ]<br>
> > +        rtype = { memrasd  :  4
}<br>
> >      else:    <br>
> >          instlist = [ <br>
> >                  
   pool[0].InstanceID,<br>
> > @@ -103,17 +108,12 @@<br>
> >                  
   pool[2].InstanceID, <br>
> >                  
   pool[3].InstanceID<br>
> >                  
  ]<br>
> > -        cllist = [ <br>
> > -                  get_typed_class(virt,
<br>
> "DiskResourceAllocationSettingData"),<br>
> > -                  get_typed_class(virt,
<br>
> "MemResourceAllocationSettingData"), <br>
> > -                  get_typed_class(virt,
<br>
> "NetResourceAllocationSettingData"), <br>
> > -                  get_typed_class(virt,
<br>
> "ProcResourceAllocationSettingData")<br>
> > -                 ]<br>
> > +        cllist = [ diskrasd, memrasd, netrasd,
procrasd ] <br>
> >          rtype = { <br>
> > -                  get_typed_class(virt,
<br>
> "DiskResourceAllocationSettingData") : 17, <br>
> > -                  get_typed_class(virt,
<br>
> "MemResourceAllocationSettingData")  :  4, <br>
> > -                  get_typed_class(virt,
<br>
> "NetResourceAllocationSettingData")  : 10, <br>
> > -                  get_typed_class(virt,
<br>
> "ProcResourceAllocationSettingData") :  3<br>
> > +                  diskrasd
: 17, <br>
> > +                  memrasd
 :  4, <br>
> > +                  netrasd
 : 10, <br>
> > +                  procrasd
:  3<br>
> >                  }<br>
> >      rangelist = {<br>
> >                  
 "Default"   : 0, <br>
> ><br>
> > _______________________________________________<br>
> > Libvirt-cim mailing list<br>
> > Libvirt-cim@redhat.com<br>
> > https://www.redhat.com/mailman/listinfo/libvirt-cim<br>
> >   <br>
> <br>
> -- <br>
> Thanks and Regards,<br>
> Deepti B. Kalakeri<br>
> IBM Linux Technology Center<br>
> deeptik@linux.vnet.ibm.com<br>
> <br>
> _______________________________________________<br>
> Libvirt-cim mailing list<br>
> Libvirt-cim@redhat.com<br>
> https://www.redhat.com/mailman/listinfo/libvirt-cim<br>
</font></tt>