forked from Linaro/lava-test-plans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
master.jinja2
78 lines (63 loc) · 2.38 KB
/
master.jinja2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{# timeouts #}
{% set lxc_project = lxc_project|default(false) %}
{% set lxc_deploy_timeout = lxc_deploy_timeout|default(15) %}
{% set lxc_boot_timeout = lxc_boot_timeout|default(5) %}
{% set lxc_install_fastboot_timeout = lxc_install_fastboot_timeout|default(10) %}
{% set lxc_test_timeout = lxc_test_timeout|default(60) %}
{% set target_deploy_timeout = target_deploy_timeout|default(40) %}
{% set TARGET_BOOT_TIMEOUT = TARGET_BOOT_TIMEOUT|default(15)|int %}
{% set test_timeout = test_timeout|default(60) %}
{% set TEST_DEFINITIONS_REPOSITORY = TEST_DEFINITIONS_REPOSITORY|default("https://github.com/Linaro/test-definitions.git") %}
{% set job_timeout = lxc_deploy_timeout + lxc_boot_timeout + lxc_install_fastboot_timeout + target_deploy_timeout + TARGET_BOOT_TIMEOUT + test_timeout %}
{# auto_login_* #}
{% set AUTO_LOGIN_PROMPT = AUTO_LOGIN_PROMPT|default("login:") %}
{% set AUTO_LOGIN_USERNAME = AUTO_LOGIN_USERNAME|default("root") %}
{% set AUTO_LOGIN_PASSWORD_PROMPT = AUTO_LOGIN_PASSWORD_PROMPT|default("") %}
{% set AUTO_LOGIN_PASSWORD = AUTO_LOGIN_PASSWORD|default("") %}
{% set enable_tests = enable_tests|default(true) %}
{% block global_settings %}
timeouts:
job:
minutes: {% if job_timeout is defined %}{{ job_timeout }}{% else %}20{% endif %}
connection:
minutes: 2
actions:
finalize:
seconds: 60
{% if use_context is defined and use_context == true %}
context:
{% block context %}
{% endblock context %}
{% endif %}
{% block settings %}
{% endblock settings %}
{% endblock global_settings %}
{% set LAVA_JOB_VISIBILITY = LAVA_JOB_VISIBILITY|default("public") %}
device_type: {% block device_type %}{% endblock %}
job_name: {% block job_name %}{% endblock %}
priority: {% block priority %}{{LAVA_JOB_PRIORITY}}{% endblock priority %}
visibility: {% block visibility %}{{LAVA_JOB_VISIBILITY}}{% endblock visibility %}
{# variables #}
{% set rootfs = rootfs|default(true) %}
{% set rootfs_label = rootfs_label|default('rootfs') %}
{% block tags %}
{% if TAGS is defined and TAGS is sequence and TAGS is not string %}
tags:
{% for tag in TAGS %}
{% if tag|length %}
- {{ tag }}
{% endif %}
{% endfor %}
{% endif %}
{% endblock tags %}
metadata:
{% block metadata %}
{% endblock metadata %}
{% block protocols %}
{% endblock protocols %}
actions:
{% block actions %}
{% block test_target %}
{% include "include/test_target.jinja2" %}
{% endblock test_target %}
{% endblock actions %}