summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2017-10-04 16:48:05 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2017-10-04 16:48:05 +0000
commit06c31d6239b59feb4337a7995edd771838fb2277 (patch)
treed74cdbdf100b14fa09ce174247b892060dc36e33 /utils
parent785b598fe473fef76714599ce4e6d0d9a5ca4c69 (diff)
parent7341f3c6b12d36dcd0dc1c2807759fe2297ee730 (diff)
Merge "Add build_version command line option"
Diffstat (limited to 'utils')
-rw-r--r--utils/agljobtemplate.py5
-rwxr-xr-xutils/create-jobs.py4
2 files changed, 7 insertions, 2 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
diff --git a/utils/create-jobs.py b/utils/create-jobs.py
index 043facc..66e3b00 100755
--- a/utils/create-jobs.py
+++ b/utils/create-jobs.py
@@ -36,6 +36,8 @@ def parse_cmdline(machines, tests, rfs_types):
help="img base name (such as agl-demo-platform) - require img_ext")
parser.add_argument('--img-ext', dest='img_ext', action='store',
help="img extension (such as ext4.xz) - require img_name")
+ parser.add_argument('--build-version', dest='build_version', action='store',
+ help="the version number of the AGL build.")
args = parser.parse_args()
@@ -67,7 +69,7 @@ def main():
job = ajt.render_job(args.urlbase, args.machine, tests=args.tests, priority=args.priority,
rfs_type=args.rfs_type, job_name=args.job_name, kci_callback=args.callback,
- rfs_image=img)
+ rfs_image=img, build_version=args.build_version)
if args.job_file is None:
print job