<?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>13367</bug_id>
          
          <creation_ts>2019-05-29 15:07:26 +0000</creation_ts>
          <short_desc>opkg ptest shows no results</short_desc>
          <delta_ts>2019-08-08 09:34:27 +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>OE-Core</product>
          <component>core</component>
          <version>2.7</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>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.8 M3</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Razi Seyyedi">razi.seyyedi</assigned_to>
          <cc>alejandro.delcastillo</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>razi.seyyedi</cc>
    
    <cc>ross.burton</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>83974</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-05-29 15:07:26 +0000</bug_when>
    <thetext>opkg ptest shows now results:

https://autobuilder.yocto.io/pub/non-release/20190529-5/testresults/testresult-report.txt

A quick check suggests this is because the output doesn&apos;t follow our format so no PASS/FAIL/SKIP values are seen, hence the zero counts.

We may need to pipe the output of the tests through sed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84307</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-06-23 23:22:30 +0000</bug_when>
    <thetext>Razi, 

Thanks for taking a Newcomer bug.
Let us know here, on the mail list or on IRC (freenode #oe #yocto) if you need anyone to bounce ideas off of.

Once you have a fix, take a look at:
   https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded
Your commit will likely need to be sent to:
   openembedded-core@lists.openembedded.org

../Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84384</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-07-08 18:58:06 +0000</bug_when>
    <thetext>Razi,
How are you doing with this defect?
Feel free to document your analysis here in the defect log if you think that will help.
../Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84392</commentid>
    <comment_count>3</comment_count>
    <who name="Razi Seyyedi">razi.seyyedi</who>
    <bug_when>2019-07-09 05:56:22 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Razi,
&gt; How are you doing with this defect?
&gt; Feel free to document your analysis here in the defect log if you think that
&gt; will help.
&gt; ../Randy

Hi Rany,

It is state as NEWCOMER bug, but there is no description on how to reproduce the bug. I am diving into Yocto to understand better not specifically this bug but in general how it works. It took me time, but no worries, I will manage to send the fix soon.

Regards,
Razi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84394</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-07-09 15:06:49 +0000</bug_when>
    <thetext>Sounds good. Thanks for working on it.
I haven&apos;t looked at the ptest-runner but as Richard said, the opkg ptest-runner likely needs to be changed to produce a result in the format expected.

Here&apos;s a ptest doc once you are ready to check that out:
  https://wiki.yoctoproject.org/wiki/Ptest

Try out something that works like running the gzip ptests first;
then work on opkg. The expected gzip ptest result is:

Recipe                       | Passed     | Failed  | Skipped  | Time(s)   
--------------------------------------------------------------------------
acl                          | 222        | 0       | 0        | 2
apr                          | 44         | 0       | 0        | 57
...
gzip                         | 22         | 0       | 0        | 3
...

From:

https://autobuilder.yocto.io/pub/non-release/20190709-1/testresults/testresult-report.txt

https://autobuilder.yocto.io/pub/non-release/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84593</commentid>
    <comment_count>5</comment_count>
    <who name="Razi Seyyedi">razi.seyyedi</who>
    <bug_when>2019-08-07 07:47:03 +0000</bug_when>
    <thetext>I am working on this issue but not intensively.
In the report from the new release, I see that opkg passed the ptest successfully.

http://downloads.yoctoproject.org/releases/yocto/milestones/yocto-2.8_M2/testreport.txt

Is it already fixed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84598</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-08-07 21:39:02 +0000</bug_when>
    <thetext>Seems to be fixed now, likely by: 
   http://cgit.openembedded.org/openembedded-core/commit/?id=76a7f0d60f5dc38da15f21720cb97bf761562b44

opkg-utils: upgrade to version 0.4.1
- Drop 0001-opkg-build-do-not-set-mtime-on-data.tar.X.patch
- Drop 0001-opkg-list-fields-fix-to-print-the-fields-again.patch

Signed-off-by: Alejandro del Castillo &lt;alejandro.delcastillo@ni.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;



This is based on the test logs, it&apos;s fixed as of:
   https://autobuilder.yocto.io/pub/non-release/20190717-7/testresults/testresult-report.txt

Broken up to around:
   https://autobuilder.yocto.io/pub/non-release/20190715-6/testresults/testresult-report.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84600</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-08-08 07:32:45 +0000</bug_when>
    <thetext>Re-closing.  Razi, if you have reason to re-open it please say so, and don&apos;t change the target milestone: M2 is in the past, so we&apos;d need a time machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84601</commentid>
    <comment_count>8</comment_count>
    <who name="Razi Seyyedi">razi.seyyedi</who>
    <bug_when>2019-08-08 08:11:36 +0000</bug_when>
    <thetext>It was fixed in 2.8 M2, so I just wanted to reset it to the version recently released. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84602</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-08-08 09:34:27 +0000</bug_when>
    <thetext>Unfortunately you re-opened it too. :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>