<?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>15734</bug_id>
          
          <creation_ts>2025-02-05 11:07:09 +0000</creation_ts>
          <short_desc>reproducible test fails on a local.conf without a newline at End-Of-File</short_desc>
          <delta_ts>2025-02-27 12:09:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</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>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yoann Congal">yoann.congal</reporter>
          <assigned_to name="Christos Gavros">gavrosc</assigned_to>
          <cc>gavrosc</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>100843</commentid>
    <comment_count>0</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2025-02-05 11:07:09 +0000</bug_when>
    <thetext>How to reproduce (Note that the printf does not add a newline at EOF) :
  printf &apos;OEQA_REPRODUCIBLE_TEST_TARGET = &quot;bash&quot;&apos; &gt;&gt; conf/local.conf
  oe-selftest -r reproducible.ReproducibleTests

This fails because the generated build-st/conf/local.conf used by the reproducible test ends with:
  OEQA_REPRODUCIBLE_TEST_TARGET = &quot;bash&quot;SSTATE_DIR ?= &quot;/home/yocon/yocto/sstate-cache&quot;
  
  #include added by oe-selftest
  include machine.inc
  include selftest.inc

To fix this: &quot;oe-selftest -r reproducible.ReproducibleTests&quot; needs to add a newline before adding lines. But beware, we don&apos;t want too much of double spaced variables.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100862</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2025-02-06 15:39:56 +0000</bug_when>
    <thetext>I suspect we should just ensure we always add entries with a newline at the end</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101236</commentid>
    <comment_count>2</comment_count>
    <who name="Christos Gavros">gavrosc</who>
    <bug_when>2025-02-27 12:09:15 +0000</bug_when>
    <thetext>The patch is merged in the master:

https://git.openembedded.org/openembedded-core/commit/?id=d2fcd9e880126bc33be2ef14e678cc1aa72683c3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>