<?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>5072</bug_id>
          
          <creation_ts>2013-08-29 12:36:27 +0000</creation_ts>
          <short_desc>Tests need a better way of determining if a package it&apos;s installed</short_desc>
          <delta_ts>2013-12-04 14:27:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>1.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>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.6</target_milestone>
          <dependson>5410</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stefan Stanacar">sstncr</reporter>
          <assigned_to name="Stefan Stanacar">sstncr</assigned_to>
          <cc>jessica.zhang</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>36034</commentid>
    <comment_count>0</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-08-29 12:36:27 +0000</bug_when>
    <thetext>The current oeRuntimeTest.hasPackage method in meta/lib/oeqa/oetest.py relies on  ${WORKDIR}/installed_pkgs.txt file (which is generated at do_rootfs with data from the package manager) for determining if a image has a certain package.

We should find a better/alternative solution, since current solution presents some problems:
   - builds with rm_work enabled delete that file hence tests will start to fail
   - that file&apos;s name/location/purpose could change at any time
   - that file might not contain all packages (there&apos;s and extra file too)

These aren&apos;t visible problems right now because we control how we run the tests, on which images and so on, but to make this task truly a test task it should be as independent on enviroment and previous outputs/operations (do_rootfs creating that file) at possible.

I don&apos;t have any alternative now, but this should get fixed in 1.6 or so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39226</commentid>
    <comment_count>1</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-12-04 14:27:56 +0000</bug_when>
    <thetext>This should be fixed now with http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d4398d41be6974d57e834cc9737348ba13e10547</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>