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:
@@ -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 + "'")
|
||||
|
||||
Reference in New Issue
Block a user