CI: mark deviceinfo_usb_rndis_function as obsolete (MR 3669)
[ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
9271ab80b6
commit
1af1eafd23
1 changed files with 8 additions and 5 deletions
|
@ -17,12 +17,15 @@ def deviceinfo_obsolete(info):
|
||||||
Test for obsolete options used in the deviceinfo file. They must still be
|
Test for obsolete options used in the deviceinfo file. They must still be
|
||||||
defined in pmbootstrap's config/__init__.py.
|
defined in pmbootstrap's config/__init__.py.
|
||||||
"""
|
"""
|
||||||
obsolete_options = ["weston_pixman_type"]
|
obsolete_options = [
|
||||||
|
"usb_rndis_function",
|
||||||
|
"weston_pixman_type",
|
||||||
|
]
|
||||||
for option in obsolete_options:
|
for option in obsolete_options:
|
||||||
if info[option]:
|
if option in info and info[option]:
|
||||||
raise RuntimeError("option '" + option + "' is obsolete, please"
|
raise RuntimeError(f"option {option} is obsolete, please rename"
|
||||||
" remove it (reasons for removal are at"
|
" or remove it (see reasons for removal of at"
|
||||||
" <https://postmarketos.org/deviceinfo>)")
|
" https://postmarketos.org/deviceinfo)")
|
||||||
|
|
||||||
|
|
||||||
def test_deviceinfo(args):
|
def test_deviceinfo(args):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue