summaryrefslogtreecommitdiffstats
path: root/utils/agljobtemplate.py
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2017-09-15 10:33:21 +0200
committerJerome Brunet <jbrunet@baylibre.com>2017-09-19 15:28:29 +0200
commit6d8721a6c24bb6b681d9c369e0032a05e54db26a (patch)
tree01de76930070633b3d6f74a719fb6c4d28ce73c2 /utils/agljobtemplate.py
parent36d0e4617c16c193a8a9932f1b09cfe97f9f767e (diff)
rfs-image: provide command line options to setup the image name
Provide 2 new command line options: --img-name and --img-ext These two options require one another since the name image will be composed from both of them in the following way: rfs_image = img_name + "-" + yocto-machine + "." + img_ext Change-Id: I2b6d174b4c141cea28ce63c3c7c7beae1a82ed4c Signed-off-by: Jerome Brunet <jbrunet@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 df3800d..0d34867 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):
+ kci_callback=None, rfs_image=None):
test_templates = []
if machine not in self.machines:
@@ -83,6 +83,9 @@ class Agljobtemplate(object):
if rfs_type is not None:
job['rootfs_type'] = rfs_type
+ if rfs_image is not None:
+ job['rfs_image'] = rfs_image
+
if kci_callback:
if test_templates:
job['callback_name'] = 'lava/test'