I was trying to follow the section testing new device template here :
https://validation.linaro.org/static/docs/v2/development-intro.html#developi...
but I am getting the error :
root@master1:/# lava-server manage device-dictionary Unknown command: 'device-dictionary'. Did you mean device-tags? Type 'lava-server help' for usage.
Some versions information : master1:/#lava-server manage version 2.2.28
lab-slave-0:/# lavacli system version 2023.01
Is the documentation outdated, or am I trying to execute the command in the wrong place ? Also what is the best way to debug and check the errors in a new device template ?
Thanks in advance. G.Emad
On Tue, Apr 25, 2023 at 10:22 AM gemad@outlook.com wrote:
I was trying to follow the section testing new device template here :
https://validation.linaro.org/static/docs/v2/development-intro.html#developi...
but I am getting the error :
root@master1:/# lava-server manage device-dictionary Unknown command: 'device-dictionary'. Did you mean device-tags? Type 'lava-server help' for usage.
Some versions information : master1:/#lava-server manage version 2.2.28
lab-slave-0:/# lavacli system version 2023.01
Is the documentation outdated, or am I trying to execute the command in the wrong place ? Also what is the best way to debug and check the errors in a new device template ?
I think the docs are outdated. Please take a look at these scripts: https://git.linaro.org/lava/lava-lab.git/tree/test-all.sh https://git.linaro.org/lava/lava-lab.git/tree/check-devices.py They are used to check whether the device dicts and device types are compatible with LAVA instances. It should give you enough ideas on how to test your templates.
Best Regards, Milosz
Thanks in advance. G.Emad _______________________________________________ Lava-users mailing list -- lava-users@lists.lavasoftware.org To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Thanks for sharing these with me, I wander if there is a cmd on the server or the slave to run on the template to check the it ? I remember using something like so in the past, but struggling to remember what is it.
Thanks, Regards Gemad
The second line for executing the tests (in LAVA sources dir root) has to be this:
python3 -m unittest -vcf tests.lava_scheduler_app.test_base_templates.TestBaseTemplates.test_all_templates
Directory structure of the tests has been changed since documentation has been written - same applies to all other examples.
I'm already preparing a pull request for these changes, as I stumbled over this too.
I don't know yet about the device-dictionary command line, couldn't yet figure out how it has to be now.
Am 25. April 2023 11:22:01 MESZ schrieb gemad@outlook.com:
I was trying to follow the section testing new device template here :
https://validation.linaro.org/static/docs/v2/development-intro.html#developi...
but I am getting the error :
root@master1:/# lava-server manage device-dictionary Unknown command: 'device-dictionary'. Did you mean device-tags? Type 'lava-server help' for usage.
Some versions information : master1:/#lava-server manage version 2.2.28
lab-slave-0:/# lavacli system version 2023.01
Is the documentation outdated, or am I trying to execute the command in the wrong place ? Also what is the best way to debug and check the errors in a new device template ?
Thanks in advance. G.Emad _______________________________________________ Lava-users mailing list -- lava-users@lists.lavasoftware.org To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Thanks for your reply, I hope we can figure out the other command line because that what I need to have a cmd to run on the template to verify it.
wish you the best with the pull request ! Regards, Gemad
Yeah, pull/merge request is out, this is the relevant change: https://git.lavasoftware.org/lava/lava/-/merge_requests/2093/diffs?commit_id...
I just don't have time to work on the command line - have enough other interesting stuff to do.
Regards Stefan
Am 27. April 2023 10:57:25 MESZ schrieb gemad@outlook.com:
Thanks for your reply, I hope we can figure out the other command line because that what I need to have a cmd to run on the template to verify it.
wish you the best with the pull request ! Regards, Gemad _______________________________________________ Lava-users mailing list -- lava-users@lists.lavasoftware.org To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
lava-users@lists.lavasoftware.org