Bug 5072 - Tests need a better way of determining if a package it's installed
Summary: Tests need a better way of determining if a package it's installed
Status: RESOLVED FIXED
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 1.6
Assignee: Stefan Stanacar
QA Contact:
URL:
Whiteboard:
Depends on: 5410
Blocks:
  Show dependency tree
 
Reported: 2013-08-29 12:36 UTC by Stefan Stanacar
Modified: 2013-12-04 14:27 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Stanacar 2013-08-29 12:36:27 UTC
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's name/location/purpose could change at any time
   - that file might not contain all packages (there's and extra file too)

These aren'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't have any alternative now, but this should get fixed in 1.6 or so.
Comment 1 Stefan Stanacar 2013-12-04 14:27:56 UTC
This should be fixed now with http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d4398d41be6974d57e834cc9737348ba13e10547