diff options
author | Loys Ollivier <lollivier@baylibre.com> | 2017-10-03 14:31:17 +0200 |
---|---|---|
committer | Loys Ollivier <lollivier@baylibre.com> | 2017-10-03 14:43:25 +0200 |
commit | 2bc4acf27f841ee4e9554320ad03fa5d53f4b34b (patch) | |
tree | 468ff283d73b48cac6bc2254d62a8841ab012c6f /utils/agljobtemplate.py | |
parent | 51c01f337278c423ecec317d35dcc3f7ce20668e (diff) |
Add version command line option
Add an option to specify the build version from the command line.
The kernel_version in the metadata is updated accordingly in the job
description if this option is used. Otherwise the default
kernel_version is used.
Change-Id: I2c8903548a232c9f42453f4f33058c1937fcb001
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
Diffstat (limited to 'utils/agljobtemplate.py')
-rw-r--r-- | utils/agljobtemplate.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py index 0d34867..48bafad 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, kernel_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 kernel_version is not None: + job['kernel_version'] = kernel_version + if rfs_type is not None: job['rootfs_type'] = rfs_type |