diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2019-03-13 10:48:05 +0100 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-04-11 15:41:58 +0000 |
commit | dea65171d9a33fac5ee1d84960cc620836376427 (patch) | |
tree | 7cc11ed46758fc676485bc2007d0d3c399924afc /utils/agljobtemplate.py | |
parent | bae08e098000969e13221d26fab678a39a7cd72c (diff) |
Implement SPEC-1850: Add application-lifecycle
This patch adds a new parameter application_url which permit to adds a
location where to download apps and test them.
The applications_url could also be generated via
app-changeid/app-patchset.
Change-Id: I88d91b5e6e30b5ab5d72e8181b15b0f561bea72d
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'utils/agljobtemplate.py')
-rw-r--r-- | utils/agljobtemplate.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py index 2e2ad95..e79db41 100644 --- a/utils/agljobtemplate.py +++ b/utils/agljobtemplate.py @@ -90,7 +90,8 @@ class Agljobtemplate(object): lava_callback=None, kci_callback=None, build_id=None, rfs_image=None, kernel_image=None, dtb_image=None, modules_image=None, build_type=None, vcs_commit=None, vcs_branch=None, - build_version=None, device_tags=""): + build_version=None, device_tags="", + applications_url=None, app_changeid=None, app_patchset=None): if machine not in self.machines: raise RuntimeError("{} is not a available machine".format(machine)) @@ -130,8 +131,22 @@ class Agljobtemplate(object): url = urlparse.urljoin(url_base, url_fragment) + if applications_url is None: + app_url_base = '' + for section in defaults: + if section[0] == "urlbase": + app_url_base = section[1] + + app_url_fragment = '' + + if app_changeid is not None: + app_url_fragment += app_changeid + '/' + app_patchset + applications_url = urlparse.urljoin(app_url_base, app_url_fragment) + device_tags = ' '.join(device_tags) job['DEVICE_TAGS'] = device_tags + if applications_url is not None: + job['APPURL'] = applications_url test_templates = [] # If the user doesn't specify tests, use the default ones from the build-type |