On 15 May 2017 at 15:17, Denis HUMEAU denis.humeau@st.com wrote:
Hello, Until then I’ve installed extra test packages from embedded test scripts.
Using the latest V2 version, I’m trying to manage this in my test jobs.
The availability of a package manager is determined by the test files submitted as part of the test job definition, so LAVA picks up settings there to determine which package manager should be used.
At execution time, I get a Error: OPKG package manager not found in the path.
In this case, the test job will have specified:
os: oe
OpenEmbedded does not include OPKG support in every build and if you want to be able to install packages using OE, you will need to ensure that opkg is built into all OE images to be used with this test definition.
Does this mean that OPKG is the only installer supported? Or is this the default one meaning that I can select DPKG or aptitude instead?
opkg is the only package manager available if OE has been selected in the test job.
apt is the only package manager available for the test definition install: deps: if os: debian is specified.
See https://staging.validation.linaro.org/static/docs/v2/writing-tests.html#test...
If the objective is to have one test definition that works for many deployments, write a script which can check what is installed and use whatever it finds - or ensure that the images as built already contain all the relevant dependencies.