<br><tt><font size=2>libvirt-cim-bounces@redhat.com wrote on 2008-12-03
02:46:27:<br>
<br>
> yunguol@cn.ibm.com wrote:<br>
> > # HG changeset patch<br>
> > # User Guolian Yun <yunguol@cn.ibm.com><br>
> > # Date 1228203734 28800<br>
> > # Node ID 5bd7b6bf455d719006acfb15c3b0bc4859d3f296<br>
> > # Parent  5fb94ae83ed121d3b0ce54bde7e30175c2df6f70<br>
> > [Test] Fix ElementConforms/02_reverse.py with sblim-cmpi-base
<br>
> provider installed<br>
> > <br>
> > Signed-off-by: Guolian Yun <yunguol@cn.ibm.com><br>
> > <br>
> > diff -r 5fb94ae83ed1 -r 5bd7b6bf455d suites/libvirt-<br>
> cim/cimtest/ElementConforms/02_reverse.py<br>
> > --- a/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py
  <br>
> Wed Nov 26 19:06:58 2008 -0800<br>
> > +++ b/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py
  <br>
> Mon Dec 01 23:42:14 2008 -0800<br>
> > @@ -159,12 +159,13 @@<br>
> >              if status !=
PASS:<br>
> >                  cxml.undefine(server)<br>
> >                  return
status<br>
> > -<br>
> > -            status = verify_profile(profs[0],
exp_list[cn])<br>
> > -            if status != PASS:<br>
> > -                logger.error("Verification
of profile instance failed")<br>
> > -                cxml.undefine(server)<br>
> > -                return
FAIL<br>
> > +            <br>
> > +            if cn != 'Linux_ComputerSystem':<br>
> > +                status
= verify_profile(profs[0], exp_list[cn])<br>
> > +                if status
!= PASS:<br>
> > +                  
 logger.error("Verification of profile instance failed")<br>
> > +                  
 cxml.undefine(server)<br>
> > +                  
 return FAIL<br>
> > <br>
> <br>
> Even if the host instance is a Linux_ComputerSystem instance, we want
to <br>
> verify the providers.<br>
> <br>
> The problem here is that when the SBLIM providers are installed, cn
== <br>
> "Linux_ComputerSystem".  The exp_list[] doesn't have
a <br>
> "Linux_ComputerSystem" value.  So you'll need to convert
cn from <br>
> "Linux_ComputerSystem" to "<virt type>_HostSystem"</font></tt>
<br>
<br><tt><font size=2>  Done, also remove XFAIL_RC in this test.</font></tt>
<br><tt><font size=2>  Thanks!</font></tt>
<br><tt><font size=2><br>
> -- <br>
> Kaitlin Rupert<br>
> IBM Linux Technology Center<br>
> kaitlin@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>