aboutsummaryrefslogtreecommitdiff
path: root/lava-v2-jobs-from-api.py
diff options
context:
space:
mode:
authorMatt Hart <matthew.hart@linaro.org>2017-07-07 12:06:52 +0100
committerGuillaume Tucker <guillaume.tucker@collabora.com>2017-07-14 10:18:49 +0100
commitee5626b686af5f923b563f7c0bde86bd86a9c18d (patch)
tree247591cfc153bd680c075b7fc3e98d0bfb792a6c /lava-v2-jobs-from-api.py
parent8f486183e5694906e0081fd3048da23441345094 (diff)
Enable more platforms for kselftest
Diffstat (limited to 'lava-v2-jobs-from-api.py')
-rwxr-xr-xlava-v2-jobs-from-api.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/lava-v2-jobs-from-api.py b/lava-v2-jobs-from-api.py
index 6ba775d..3af4c5b 100755
--- a/lava-v2-jobs-from-api.py
+++ b/lava-v2-jobs-from-api.py
@@ -43,6 +43,7 @@ ARCHS = ['arm64', 'arm64be', 'armeb', 'armel', 'x86']
ROOTFS_URL = 'http://storage.kernelci.org/images/rootfs'
INITRD_URL = '/'.join([ROOTFS_URL, 'buildroot/{}/rootfs.cpio.gz'])
NFSROOTFS_URL = '/'.join([ROOTFS_URL, 'buildroot/{}/rootfs.tar.xz'])
+KSELFTEST_INITRD_URL = '/'.join([ROOTFS_URL, 'buildroot/{}/tests/rootfs.cpio.gz'])
def main(args):
config = configuration.get_config(args)
@@ -164,8 +165,10 @@ def main(args):
base_url = "%s/%s/%s/%s/%s/%s/" % (storage, build['job'], build['git_branch'], build['kernel'], arch, defconfig)
if dtb_full.endswith('.dtb'):
dtb_url = base_url + "dtbs/" + dtb_full
+ platform = dtb_url[:-4]
else:
dtb_url = None
+ platform = device_type
kernel_url = urlparse.urljoin(base_url, build['kernel_image'])
defconfig_base = ''.join(defconfig.split('+')[:1])
endian = 'little'
@@ -180,7 +183,10 @@ def main(args):
initrd_arch = 'armeb'
else:
initrd_arch = 'armel'
- initrd_url = INITRD_URL.format(initrd_arch)
+ if 'kselftest' in plan:
+ initrd_url = KSELFTEST_INITRD_URL.format(initrd_arch)
+ else:
+ initrd_url = INITRD_URL.format(initrd_arch)
nfsrootfs_url = NFSROOTFS_URL.format(initrd_arch) if 'nfs' in plan else None
if build['modules']:
modules_url = urlparse.urljoin(base_url, build['modules'])
@@ -191,7 +197,8 @@ def main(args):
device_type = 'qemu'
job = {'name': job_name,
'dtb_url': dtb_url,
- 'platform': dtb_full,
+ 'dtb_full': dtb_full,
+ 'platform': platform,
'kernel_url': kernel_url,
'image_type': 'kernel-ci',
'image_url': base_url,