diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2013-05-24 08:58:00 +0530 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2013-05-24 08:58:00 +0530 |
commit | dd6dc53e9d057f1569621ed51d61cd7b33b914b9 (patch) | |
tree | b31810b402c872a9102ad33661ced77a43ab2911 /build-scripts | |
parent | 6d2a8afc4c7bfe2dc18cc31b74171a065a5f20d0 (diff) |
Add support for to submit LAVA job with flat fileystem images
Diffstat (limited to 'build-scripts')
-rwxr-xr-x | build-scripts/post-build-lava.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/build-scripts/post-build-lava.py b/build-scripts/post-build-lava.py index bd508ce..7bf46bb 100755 --- a/build-scripts/post-build-lava.py +++ b/build-scripts/post-build-lava.py @@ -361,6 +361,13 @@ def main(): # if this value is not set, then use the 18000 seconds as the default value default_timeout = os.environ.get("DEFAULT_TIMEOUT", 18000) + # Set the file extension based on the type of artifacts + artifact_type = os.environ.get("MAKE_TARGETS", "tarball") + if artifact_type == "droidcore": + file_extension = "img" + else: + file_extension = "tar.bz2" + # Board-specific parameters if target_product not in PRODUCT_MAP: # We don't know how to test this job, so skip testing. @@ -394,12 +401,12 @@ def main(): "command": "deploy_linaro_android_image", "parameters": { - "boot": "%s%s" % (download_url, - "/boot.tar.bz2"), - "system":"%s%s" % (download_url, - "/system.tar.bz2"), - "data":"%s%s" % (download_url, - "/userdata.tar.bz2") + "boot": "%s%s%s" % (download_url, + "/boot.",file_extension), + "system":"%s%s%s" % (download_url, + "/system.",file_extension), + "data":"%s%s%s" % (download_url, + "/userdata.",file_extension) }, "metadata": { |