CI: make sure devices that support kernel updates install the script (MR 2215)

To prevent accidental bricks, postmarketos-update-kernel is not
installed by default. If it works for your device and you've added the
deviceinfo variable, you also need to depend on the package for the
updates to actually happen.

[ci:skip-build] already built successfully in CI
This commit is contained in:
Caleb Connolly 2021-06-01 23:46:41 +01:00 committed by Clayton Craft
parent 62e5d30506
commit 5e5d23959b
No known key found for this signature in database
GPG key ID: 7A3461CA187CEA54

View file

@ -57,6 +57,14 @@ def test_aports_device(args):
if "!archcheck" not in apkbuild["options"]:
raise RuntimeError("!archcheck missing in options= line: " + path)
if deviceinfo["flash_kernel_on_update"] == "true" \
and "postmarketos-update-kernel" not in apkbuild["depends"]:
raise RuntimeError(
"Deviceinfo indicates this device supports automatic kernel"
" flashing on update, but doesn't depend on"
" 'postmarketos-update-kernel'. Please add the missing"
" dependency.")
def test_aports_device_kernel(args):
"""