aboutsummaryrefslogtreecommitdiff
path: root/lava-v2-jobs-from-api.py
diff options
context:
space:
mode:
authorAna Guerrero Lopez <ana.guerrero@collabora.com>2018-06-15 16:06:32 +0200
committerGuillaume Tucker <guillaume.tucker@collabora.com>2018-06-28 16:24:39 +0100
commit7529e996165d754a4f567467918c8d21022b1dd8 (patch)
tree1247491781dff6a6a74ac2b54ed01a8301f63960 /lava-v2-jobs-from-api.py
parentec9bb14bbfd675574953f2999bbc18cd216c4acb (diff)
lava-v2-jobs-from-api.py: use debian rootfs for v4l2 tests
Add both debian rootfs to be used: stretch and stretchtests the v4l2 test plan needs the test suite included in the stretchtests rootfs images. Signed-off-by: Ana Guerrero Lopez <ana.guerrero@collabora.com>
Diffstat (limited to 'lava-v2-jobs-from-api.py')
-rwxr-xr-xlava-v2-jobs-from-api.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/lava-v2-jobs-from-api.py b/lava-v2-jobs-from-api.py
index 2bb7e76..225c29f 100755
--- a/lava-v2-jobs-from-api.py
+++ b/lava-v2-jobs-from-api.py
@@ -44,7 +44,10 @@ ROOTFS_URL = 'http://storage.kernelci.org/images/rootfs/buildroot'
INITRD_URL = '/'.join([ROOTFS_URL, '{}', 'rootfs.cpio.gz'])
NFSROOTFS_URL = '/'.join([ROOTFS_URL, '{}', 'rootfs.tar.xz'])
KSELFTEST_INITRD_URL = '/'.join([ROOTFS_URL, '{}', 'tests', 'rootfs.cpio.gz'])
-
+DEBIAN_ROOTFS_URL = 'http://storage.kernelci.org/images/rootfs/debian/stretch/20180627.0/'
+DEBIAN_INITRD_URL = '/'.join([DEBIAN_ROOTFS_URL, '{}', 'rootfs.cpio.gz'])
+DEBIANTESTS_ROOTFS_URL = 'http://storage.kernelci.org/images/rootfs/debian/stretchtests/20180627.0/'
+DEBIANTESTS_INITRD_URL = '/'.join([DEBIANTESTS_ROOTFS_URL, '{}', 'rootfs.cpio.gz'])
def get_builds(api, token, config):
headers = {
@@ -141,14 +144,24 @@ def get_job_params(config, template, opts, device, build, defconfig, plan):
else:
initrd_arch = 'armel'
+ debian_initrd_arch = arch
+ if arch == 'arm64':
+ debian_initrd_arch = 'arm64'
+ elif arch == 'arm':
+ debian_initrd_arch = 'armhf'
+
nfsrootfs_url = None
initrd_url = None
rootfs_prompt = "\(initramfs\)"
if 'kselftest' in plan:
initrd_url = KSELFTEST_INITRD_URL.format(initrd_arch)
+ elif 'v4l2' in plan:
+ initrd_url = DEBIANTESTS_INITRD_URL.format(debian_initrd_arch)
+ rootfs_prompt = "/ #"
else:
initrd_url = INITRD_URL.format(initrd_arch)
+
if 'nfs' in plan:
nfsrootfs_url = NFSROOTFS_URL.format(initrd_arch)
initrd_url = None