On 11 April 2017 at 11:13, Denis HUMEAU denis.humeau@st.com wrote:
Dear all,
This is my first post on the mailing list, I hope I’m at the right place.
Yes, you are.
Using Lava V2, I’m trying to install packages in the DUT following the guidelines from
https://validation.linaro.org/static/docs/v2/writing-tests.html#test-definit...
In this case, it is the test job definition which will be of most interest.
My job looks like this:
(Test Shell Definition)
metadata:
(…)
install: sources: - http://<local_network_package_server>/sti - http:// <local_network_package_server>/all - http:// <local_network_package_server>/cortexa9hf-neon deps: - python-pytest - python-lxml - packagegroup-core-buildessential*
run: steps: - step1 - step2
Running this test, I get the following error:
<LAVA_TEST_RUNNER>: started<LAVA_TEST_RUNNER>: looking for work in /lava-3715/0/lava-test-runner.conf-1484266027
<LAVA_TEST_RUNNER>: running 0_TC_BENCH_DISK_AIO_STRESS under lava-test-shell...
<LAVA_TEST_RUNNER>: running 0_TC_BENCH_DISK_AIO_STRESS installer ...
/lava-3715/0/tests/0_TC_BENCH_DISK_AIO_STRESS/install.sh: line 5: lava-add-sources: command not found
Hmm, the file is copied, for example: Creating /var/lib/lava/dispatcher/tmp/11379/lava-overlay-FwTfJH/lava-11379/bin/lava-add-sources
Command not found is not the same as File not found.
Check your test job log file - you can attach the entire thing to your reply which will work a lot better than trying to embed it inside the email.
/lava-3715/0/tests/0_TC_BENCH_DISK_AIO_STRESS/install.sh: line 6: lava-add-sources: command not found
/lava-3715/0/tests/0_TC_BENCH_DISK_AIO_STRESS/install.sh: line 7: lava-add-sources: command not found
Error: OPKG package manager not found in the path.
This is a problem in your test image.
lava-install-packages looks for opkg in the $PATH and fails if that is not found.