summaryrefslogtreecommitdiffstats
path: root/utils/create-jobs.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/create-jobs.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/create-jobs.py')
-rwxr-xr-xutils/create-jobs.py4
1 files changed, 3 insertions, 1 deletions
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