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:
parent
feacb49148
commit
48bad75444
1 changed files with 2 additions and 1 deletions
|
|
@ -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 + "'")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue