On Mon, Apr 8, 2024 at 10:10 AM Florian Bezdeka florian.bezdeka@siemens.com wrote:
On Mon, 2024-04-08 at 09:57 +0100, Milosz Wasilewski wrote:
There is no support for loops in LAVA test job definitions.
But you can generate the job definition. Might become big and maybe you run into some limits, but in general it should work.
yep, that works for sure. I know folks that run some really long job definitions. There may be some side effects, like your runner runs out of memory. Worth to try, but the author expressed his dislike of the idea.
Best Regards, Milosz
Best Regards, Milosz
On Mon, Apr 8, 2024 at 8:18 AM irreallich@126.com wrote:
Hi, I try to following the code https://github.com/Linaro/lava-test-plans/blob/master/lava_test_plans/testca... line 20-27 , code as below, it seems that we can use "for loop" on "- boot" . {% for index in range(1,8) %} {% with FASTBOOT_COMMANDS=Null %}
- boot:
{% include "include/boot_target/boot_target.jinja2" %} {% endwith %} {% with test_timeout=boottime_timeout %} {% include "include/test_target.jinja2" %} {% endwith %}
when I try the following code, lava report error: code: {% for index in range(1,8) %}
- boot: method: minimal timeout: minutes: 10 auto_login: login_prompt: 'tegra-ubuntu login:' username: root password_prompt: "Password:" password: "root" login_commands: - ifconfig prompts: - 'root@tegra-ubuntu:' parameters: kernel-start-message: '' transfer_overlay: download_command: cd /tmp ; wget unpack_command: tar -m -C / -xzf
{% endfor %}
error: line22 is "{% for index in range(1,8) %}" Invalid definition: Loading job submission failed: while scanning for the next token found character that cannot start any token in "", line 22, column 2.
Where did I go wrong? _______________________________________________ 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 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