<?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>12928</bug_id>
          
          <creation_ts>2018-09-22 15:10:12 +0000</creation_ts>
          <short_desc>bitbake-selftest with network disabled doesn&apos;t work</short_desc>
          <delta_ts>2018-09-27 14:35:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>2.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81606</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-09-22 15:10:12 +0000</bug_when>
    <thetext>If I run:

BB_SKIP_NETTESTS=yes bitbake-selftest

I see:

Unset BB_SKIP_NETTESTS to run network tests
....................................................................................................................................................................................................................................ssss........sssssssssssssss.........s.....s.......................................................................E
Stdout:
Looking for collection core...
E
Stdout:
Looking for layerbranch openembedded-core...
....
======================================================================
ERROR: test_find_collection (layerindexlib.tests.restapi.LayerIndexWebRestApiTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/media/build1/poky/bitbake/lib/layerindexlib/tests/restapi.py&quot;, line 150, in test_find_collection
    _check(collection, result)
  File &quot;/media/build1/poky/bitbake/lib/layerindexlib/tests/restapi.py&quot;, line 136, in _check
    result = self.layerindex.find_collection(collection)
AttributeError: &apos;LayerIndexWebRestApiTest&apos; object has no attribute &apos;layerindex&apos;

Stdout:
Looking for collection core...

======================================================================
ERROR: test_find_layerbranch (layerindexlib.tests.restapi.LayerIndexWebRestApiTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/media/build1/poky/bitbake/lib/layerindexlib/tests/restapi.py&quot;, line 173, in test_find_layerbranch
    _check(collection, result)
  File &quot;/media/build1/poky/bitbake/lib/layerindexlib/tests/restapi.py&quot;, line 156, in _check
    for index in self.layerindex.indexes:
AttributeError: &apos;LayerIndexWebRestApiTest&apos; object has no attribute &apos;layerindex&apos;

Stdout:
Looking for layerbranch openembedded-core...

----------------------------------------------------------------------
Ran 348 tests in 20.443s

whereas bitbake-selftest with the network tests enabled works just fine. We should fix this. I suspect its a bug Mark introduced with the new tests for the layerindex.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81619</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2018-09-25 15:09:24 +0000</bug_when>
    <thetext>patch send to bitbake-devel list for review.

changes also available at bitbake-contrib  mgh/12928 branch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81652</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-09-27 14:35:52 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f61ef5b45417382ff94e9d389d8eeda490026d73</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>