summaryrefslogtreecommitdiffstats
path: root/utils/agljobtemplate.py
diff options
context:
space:
mode:
authorLoys Ollivier <lollivier@baylibre.com>2017-10-04 10:54:44 +0200
committerLoys Ollivier <lollivier@baylibre.com>2017-10-04 10:54:44 +0200
commit7341f3c6b12d36dcd0dc1c2807759fe2297ee730 (patch)
tree4878caaa317bb94f153b28659e24fff4afed3030 /utils/agljobtemplate.py
parent5df73d83ac8d38022f1e1ecd5b0b08022eb2682d (diff)
Add build_version command line option
Add an option to specify the build version from the command line. The kernel_version in the job metadata is updated accordingly if this option is used. Otherwise the default kernel_version is used. Change-Id: Ifc73405d23cb48f48be3d558588bbd20b5063552 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
Diffstat (limited to 'utils/agljobtemplate.py')
-rw-r--r--utils/agljobtemplate.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py
index 0d34867..c8edc8e 100644
--- a/utils/agljobtemplate.py
+++ b/utils/agljobtemplate.py
@@ -60,7 +60,7 @@ class Agljobtemplate(object):
return self.RFS_TYPE
def render_job(self, url, machine, job_name="AGL-short-smoke", priority="medium", tests=[], rfs_type=None,
- kci_callback=None, rfs_image=None):
+ kci_callback=None, rfs_image=None, build_version=None):
test_templates = []
if machine not in self.machines:
@@ -80,6 +80,9 @@ class Agljobtemplate(object):
job['urlbase'] = url
job['test_templates'] = test_templates
+ if build_version is not None:
+ job['kernel_version'] = build_version
+
if rfs_type is not None:
job['rootfs_type'] = rfs_type