There is no support for loops in LAVA test job definitions.
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