From 402db0b5d149c47b5f0313c1c114eeabd0950d80 Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Thu, 30 May 2019 15:38:35 -0700 Subject: add tags: section, ensure tags are always lowercase Whenever --device-tags are passed, a "tags:" section is added to the job with all of the tags passed on the command-line. To facilitate this, the device_tags list is passed directly from python to the jinja templates, and iteration is done in jinja instead of a string created in python. Also, while here, ensure that tags are always passed lower-cased. IMPORTANT: this implies that any tags in LAVA labs that are upper-case will *never* be used. Change-Id: I8f274098a69e34c32c5ed2d1c430eca0d364bcc5 Signed-off-by: Kevin Hilman --- utils/agljobtemplate.py | 1 - 1 file changed, 1 deletion(-) (limited to 'utils') 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 = [] -- cgit 1.2.3-korg