Skip to content

Commit 414792a

Browse files
committed
config: runtime: ltp: set default EXTRA_KIRK_ARGS
Set default EXTRA_KIRK_ARGS to a random value between 1 and 100 for fault-injection ltp job. Signed-off-by: Vignesh Raman <[email protected]>
1 parent f16f2fd commit 414792a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/runtime/tests/ltp.jinja2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
{# Set default extra_kirk_args to a random value between 1 and 100
2+
for ltp-fault-injection jobs if it is not defined. #}
3+
{%- if "fault-injection" in node.data.config_full and extra_kirk_args is not defined %}
4+
{%- set extra_kirk_args = '-F ' ~ (range(1, 101)|random) %}
5+
{%- endif %}
16
- test:
27
name: {{ node.name }}
38
timeout:

0 commit comments

Comments
 (0)