<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11358</bug_id>
          
          <creation_ts>2017-04-13 13:59:30 +0000</creation_ts>
          <short_desc>oe-selftest: coverage report shows incorrect info</short_desc>
          <delta_ts>2020-04-30 08:35:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ed Bartosh">eduard.bartosh</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>bluelightning</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72458</commentid>
    <comment_count>0</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-04-13 13:59:30 +0000</bug_when>
    <thetext>Coverage report shows some of the covered lines of wic code as uncovered.

Here is an example:

$ oe-selftest -r wic --coverage
$ coverage3 report -m |grep filemap.py
/home/ed/git/yocto/poky/scripts/lib/wic/filemap.py                               248     99     52     11    55%   79-80, 87-88, 93-94, 102-103, 108-109, 125-126, 138, 147, 160, 169, 183-194, 207-210, 226-249, 253-261, 265, 274-293, 297-299, 303-305, 376, 390-403, 422, 470, 502-516, 530-531, 543, 547-550, 553, 557, 73-&gt;76, 78-&gt;79, 118-&gt;exit, 375-&gt;376, 469-&gt;470, 542-&gt;543, 542-&gt;562, 546-&gt;547, 546-&gt;549, 556-&gt;542, 556-&gt;557

lines 207-210 belong to FilemapSeek.__init__, which is definitely called in  test_sparse_copy test case. The same happens with a lot of other lines of code from this module.

It looks like coverage doesn&apos;t work properly for direct API calls. It works only for indirect calls, i.e. when the API is called from the tool/program that&apos;s executed in test cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87123</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-04-30 08:35:14 +0000</bug_when>
    <thetext>Coverage support was dropped from oe-selftest and we don&apos;t have the time/plans to implement now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>