CI: deviceinfo: add manufacturer exception for Jolla

Some phones sold under the Jolla brand are manufactured by a partner,
e.g. the Jolla C2 is manufactured by Reeder. Although these phones
usually have another name given to them by the manufacturer, the name
used by Jolla is more recognizable. Allow specifying a name that
starts with "Jolla" instead of the manufacturer name.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6426
This commit is contained in:
Affe Null 2025-04-18 12:21:05 +02:00 committed by Pablo Correa Gómez
parent feacb49148
commit 48bad75444
No known key found for this signature in database
GPG key ID: 7A342565FF635F79

View file

@ -74,7 +74,8 @@ def test_deviceinfo():
name = info.name
manufacturer = info.manufacturer
if not name.startswith(manufacturer) and \
not name.startswith("Google"):
not name.startswith("Google") and \
not name.startswith("Jolla"):
raise RuntimeError("Please add the manufacturer in front of"
" the deviceinfo_name, e.g.: '" +
manufacturer + " " + name + "'")