CI: test installing of postmarketos-installkernel (MR 4681)
[ci:skip-build]: too many kernels to build in CI, all built locally
This commit is contained in:
parent
b541410f51
commit
492f3c0e64
1 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,8 @@ import glob
|
||||||
import pytest
|
import pytest
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
import add_pmbootstrap_to_import_path
|
import add_pmbootstrap_to_import_path
|
||||||
import pmb.parse
|
import pmb.parse
|
||||||
|
@ -40,3 +42,9 @@ def test_aports_kernel(args):
|
||||||
if "pmb:kconfigcheck-community" not in apkbuild["options"]:
|
if "pmb:kconfigcheck-community" not in apkbuild["options"]:
|
||||||
raise RuntimeError(f"{aport_name}: \"pmb:kconfigcheck-community\" missing in"
|
raise RuntimeError(f"{aport_name}: \"pmb:kconfigcheck-community\" missing in"
|
||||||
" options= line, required for all community/main devices.")
|
" options= line, required for all community/main devices.")
|
||||||
|
|
||||||
|
# check for postmarketos-installkernel in makedepends when installing kernel with make
|
||||||
|
if bool(re.search("make z?install", Path(path).read_text(encoding="utf-8"))):
|
||||||
|
if "postmarketos-installkernel" not in apkbuild["makedepends"]:
|
||||||
|
raise RuntimeError(f"{aport_name}: \"postmarketos-installkernel\" missing in"
|
||||||
|
" makedepends, required when using make install/zinstall.")
|
||||||
|
|
Loading…
Reference in a new issue