summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/base/agl-base.jinja27
-rw-r--r--templates/tests/ci.jinja27
-rw-r--r--utils/agljobtemplate.py1
3 files changed, 12 insertions, 3 deletions
diff --git a/templates/base/agl-base.jinja2 b/templates/base/agl-base.jinja2
index fddda12..0bc7188 100644
--- a/templates/base/agl-base.jinja2
+++ b/templates/base/agl-base.jinja2
@@ -8,6 +8,13 @@
{% endif %}
{%- block main %}
device_type: {{ device_type }}
+{%- if DEVICE_TAGS %}
+tags:
+{%- for tag in DEVICE_TAGS %}
+- {{ tag|lower }}
+{%- endfor %}
+{%- endif %}
+
job_name: {{ name }}
timeouts:
diff --git a/templates/tests/ci.jinja2 b/templates/tests/ci.jinja2
index feca60e..b5974fc 100644
--- a/templates/tests/ci.jinja2
+++ b/templates/tests/ci.jinja2
@@ -18,9 +18,12 @@
history: False
path: test-suites/short-smoke/service-check.yaml
name: service-check
+{%- if DEVICE_TAGS %}
parameters:
- DEVICE_TAGS: "{{ DEVICE_TAGS }}"
-{% if "CAN" in DEVICE_TAGS %}
+ DEVICE_TAGS: "{{ DEVICE_TAGS|join(' ')|lower }}"
+{%- endif -%}
+
+{% if "can" in DEVICE_TAGS|lower %}
{% include 'tests/can.jinja2' %}
{% endif %}
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py
index b12a8ef..3c69832 100644
--- a/utils/agljobtemplate.py
+++ b/utils/agljobtemplate.py
@@ -150,7 +150,6 @@ class Agljobtemplate(object):
else:
job['APPURL'] = applications_url
- device_tags = ' '.join(device_tags)
job['DEVICE_TAGS'] = device_tags
test_templates = []