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/create-jobs.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/create-jobs.py')
-rwxr-xr-x | utils/create-jobs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/create-jobs.py b/utils/create-jobs.py index 043facc..531f654 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('--version', dest='kernel_version', action='store', + help="the version 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, kernel_version=args.kernel_version) if args.job_file is None: print job |