aboutsummaryrefslogtreecommitdiffstats
path: root/utils/agljobtemplate.py
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2020-07-16 09:25:56 +0200
committerCorentin LABBE <clabbe@baylibre.com>2020-07-16 09:25:56 +0200
commit5cbbce37ba330f9617d27b561cb260a104d3dcb1 (patch)
tree55c2179e776a431897d2179e0b6efed2b27157f6 /utils/agljobtemplate.py
parentb5bcfa146da2baf76fd466a7130a08465e9331ba (diff)
SPEC-3414: add new metadata for kernelCI
Recent kernelCI expects to have more metadata in LAVA job definition. This patchs add them. Change-Id: I936947ee2ea799c28220f25a587392b7d94d488e Bug-AGL: SPEC-3414 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'utils/agljobtemplate.py')
-rw-r--r--utils/agljobtemplate.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py
index 639492c..28e06ec 100644
--- a/utils/agljobtemplate.py
+++ b/utils/agljobtemplate.py
@@ -6,6 +6,7 @@ import jinja2
import configparser
from urllib.parse import urlparse
from urllib.parse import urljoin
+from urllib.parse import urlsplit
import ast
@@ -188,6 +189,7 @@ class Agljobtemplate(object):
raise RuntimeError("{} is not an available test".format(t))
job['urlbase'] = url
+ job["resource_path"] = urlsplit(url).path.lstrip("/")
job['test_templates'] = test_templates
machine_branch = None
@@ -214,6 +216,9 @@ class Agljobtemplate(object):
if kernel_image is not None:
job['kernel_image'] = kernel_image
+ # hardcoded but arm/arm64/x86 are little by default
+ job["kernel_endian"] = 'little'
+
if dtb_image is not None:
job['dtb'] = dtb_image