<?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>9145</bug_id>
          
          <creation_ts>2016-02-19 09:07:19 +0000</creation_ts>
          <short_desc>Write oe-selftest for bbappend order</short_desc>
          <delta_ts>2016-05-11 12:47:42 +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.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Istrate">daniel.alexandrux.istrate</reporter>
          <assigned_to name="Daniel Istrate">daniel.alexandrux.istrate</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <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>59260</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2016-02-19 09:07:19 +0000</bug_when>
    <thetext>Write an oe-selftest for bug 9138.

Steps:
1. Create multiple bbappend files for a recipe and append to SUMMARY in each of them:
[/poky/meta-selftest/recipes-test]$ cat ed4/ed_1.9.bbappend 
SUMMARY += &quot;4&quot;
[/poky/meta-selftest/recipes-test]$ cat ed3/ed_1.9.bbappend 
SUMMARY += &quot;3&quot;
[/poky/meta-selftest/recipes-test]$ cat ed2/ed_1.9.bbappend 
SUMMARY += &quot;2&quot;
[/poky/meta-selftest/recipes-test]$ cat ed1/ed_1.9.bbappend 
SUMMARY += &quot;1&quot;
[/poky/meta-selftest/recipes-test]$ cat ed0/ed_1.9.bbappend 
SUMMARY += &quot;0&quot;

2. Based on BBFILES check the expected bbappend order:
$ ls poky/meta-selftest/recipes-*/*/*.bbappend
poky/meta-selftest/recipes-test/ed0/ed_1.9.bbappend
poky/meta-selftest/recipes-test/ed1/ed_1.9.bbappend
poky/meta-selftest/recipes-test/ed2/ed_1.9.bbappend
poky/meta-selftest/recipes-test/ed3/ed_1.9.bbappend
poky/meta-selftest/recipes-test/ed4/ed_1.9.bbappend

So the order is 0, 1, 2, 3, 4

3. Get the SUMMARY for the recipe:
bitbake -e ed | grep ^SUMMARY=

Expected results:
SUMMARY=&quot;Line-oriented text editor 0 1 2 3 4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59261</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2016-02-19 10:18:11 +0000</bug_when>
    <thetext>Patch sent to ML:
http://lists.openembedded.org/pipermail/openembedded-core/2016-February/117780.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61253</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-04-14 20:02:20 +0000</bug_when>
    <thetext>Fixed in oe-core 51bef86ce52fdc2455cd1879e3e19d5ccc5c1c9c.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62100</commentid>
    <comment_count>3</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-05-11 12:45:30 +0000</bug_when>
    <thetext>Verified on https://autobuilder.yoctoproject.org/main/builders/nightly-oe-selftest/builds/481/steps/Running%20oe-selftest/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62101</commentid>
    <comment_count>4</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-05-11 12:47:42 +0000</bug_when>
    <thetext>Added meta-selftest in bblayers.conf on master 7ca60ec8bff7656b4e52f5a4d238913e851da089
Run bitbake -e ed | grep ^SUMMARY=
SUMMARY=&quot;Line-oriented text editor 0 1 2 3 4&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>